You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/ipager/files/ipager-1.1.0-scons_flags.patch

25 lines
901 B

Make sure Scons takes the CFLAGS/CXXFLAGS/LDFLAGS etc for the system.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
diff -Nuar ipager-1.1.0.orig/SConstruct ipager-1.1.0/SConstruct
--- ipager-1.1.0.orig/SConstruct 2008-09-08 20:32:23.007016555 -0700
+++ ipager-1.1.0/SConstruct 2008-09-08 20:32:05.103267940 -0700
@@ -30,6 +30,16 @@
# environment
ipager_env = Environment(options = ipager_options, ENV = os.environ)
+# process env variables
+for K in ['CPPFLAGS', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS', 'CC', 'CXX']:
+ if K in os.environ.keys():
+ dict = ipager_env.ParseFlags(os.environ[K])
+ # These headers are supposed static. Don't check at each build.
+ for i in dict['CPPPATH']:
+ dict['CCFLAGS'].append('-I' + i)
+ dict['CPPPATH'] = []
+ ipager_env.MergeFlags(dict)
+
ipager_env.Append(
CPPFLAGS = [ '-Wall' ],
CPPPATH = [ '/usr/X11R6/include' ],