From 419a487ddc20965b3580f2febab395303eeab9b9 Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Wed, 11 Aug 2010 14:52:35 +0000 Subject: Respect LDFLAGS, CFLAGS, and CC (Bug #332227) (Portage version: 2.1.8.3/cvs/Linux x86_64) --- .../files/rox-media-0.0.3-Respect-env.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rox-base/rox-media/files/rox-media-0.0.3-Respect-env.patch (limited to 'rox-base/rox-media/files') diff --git a/rox-base/rox-media/files/rox-media-0.0.3-Respect-env.patch b/rox-base/rox-media/files/rox-media-0.0.3-Respect-env.patch new file mode 100644 index 000000000000..291ad1a0d13f --- /dev/null +++ b/rox-base/rox-media/files/rox-media-0.0.3-Respect-env.patch @@ -0,0 +1,24 @@ +diff --git a/src/SConscript b/src/SConscript +index 6447851..85094b2 100644 +--- a/src/SConscript ++++ b/src/SConscript +@@ -1,4 +1,5 @@ + import os, sys ++import SCons.Util + + media_env = Environment() + conf = Configure(media_env) +@@ -19,6 +20,13 @@ for l in appinfo: + vstring = l.replace('', '').replace('', '') + break + ++if os.environ.has_key('CC'): ++ media_env['CC'] = os.environ['CC'] ++if os.environ.has_key('CFLAGS'): ++ media_env.Append(CFLAGS = SCons.Util.CLVar(os.environ['CFLAGS'])) ++if os.environ.has_key('LDFLAGS'): ++ media_env.Append(LINKFLAGS = SCons.Util.CLVar(os.environ['LDFLAGS'])) ++ + media_env.ParseConfig('pkg-config --cflags --libs ' \ + 'gconf-2.0 gdu gtk+-2.0 gdk-pixbuf-2.0') + media_env.Append(CFLAGS = ['-DGDU_API_IS_SUBJECT_TO_CHANGE', -- cgit v1.2.3-65-gdbad