diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-12-16 11:39:24 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-16 11:39:24 +0000 |
commit | c352a064c50c75e1b1ee796457baa2a89c22091a (patch) | |
tree | 5afeaf2d43b308c4c3eb6d166b78faea09dbdff5 /media-libs/iulib/files | |
parent | Missing inherit flag-o-matic wrt #276142. Remove useless FEATURES="ccache" ch... (diff) | |
download | historical-c352a064c50c75e1b1ee796457baa2a89c22091a.tar.gz historical-c352a064c50c75e1b1ee796457baa2a89c22091a.tar.bz2 historical-c352a064c50c75e1b1ee796457baa2a89c22091a.zip |
Version bump #297104 by Michał Górny.
Package-Manager: portage-2.2_rc55/cvs/Linux x86_64
Diffstat (limited to 'media-libs/iulib/files')
-rw-r--r-- | media-libs/iulib/files/iulib-0.4-scons-build-env.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-libs/iulib/files/iulib-0.4-scons-build-env.patch b/media-libs/iulib/files/iulib-0.4-scons-build-env.patch new file mode 100644 index 000000000000..3983d9c820b4 --- /dev/null +++ b/media-libs/iulib/files/iulib-0.4-scons-build-env.patch @@ -0,0 +1,39 @@ +--- SConstruct ++++ SConstruct +@@ -36,12 +36,25 @@ + + ### Options exposed via SCons + opts = Options('custom.py') +-opts.Add('opt', 'Compiler flags for optimization/debugging', "-g -O3") ++opts.Add('opt', 'Compiler flags for optimization/debugging', "") + opts.Add('warn', 'Compiler flags for warnings', "-Wall -D__warn_unused_result__=__far__") + opts.Add('prefix', 'The installation root for iulib', "/usr/local") + ++env = Environment(options=opts) ++ ++import SCons.Util ++if os.environ.has_key('CC'): ++ env['CC'] = os.environ['CC'] ++if os.environ.has_key('CFLAGS'): ++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) ++if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) ++if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) ++ + ### globals +-env = Environment(options=opts, CXXFLAGS="${opt} ${warn}") + Help(opts.GenerateHelpText(env)) + conf = Configure(env) + if "-DUNSAFE" in env["opt"]: +@@ -134,7 +147,7 @@ + src_suffix = '') + progs.Append(BUILDERS={'Test':test_builder}) + +-if True: #"test" in COMMAND_LINE_TARGETS: ++if "test" in COMMAND_LINE_TARGETS: + for file in glob.glob("*/test-*.cc") + glob.glob("*/*/test-*.cc"): + if not file.startswith('vidio'): + progs.Program(file[:-3],file) |