Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=ec7f292b1ad87c3d38924d987fd9f43aa226a23c

commit ec7f292b1ad87c3d38924d987fd9f43aa226a23c
Author: James Buren <[email protected]>
Date:   Wed Oct 8 20:01:37 2014 -0500

scons: fix debug flags and comment some of the actions

diff --git a/SConstruct b/SConstruct
index 0047311..cef5f8e 100755
--- a/SConstruct
+++ b/SConstruct
@@ -108,9 +108,20 @@ if not cfg.env['HOST_ARCH'] in [ 'i686', 'x86_64' ]:

env = cfg.Finish()

-env.ParseConfig('pkg-config --cflags --libs libarchive libcurl')
+# Set C compiler only flags
env.Append(CFLAGS = '-std=c99')
+
+# Set C++ compiler only flags
env.Append(CXXFLAGS = '-std=c++11')

-if debug:
+# Set debugging or no debugging flags
+if GetOption('debug'):
env.Append(CCFLAGS = '-g')
+else:
+       env.Append(CCFLAGS = '-DNDEBUG')
+
+# Set flags for libarchive
+env.ParseConfig('pkg-config --cflags --libs libarchive')
+
+# Set flags for libcurl
+env.ParseConfig('pkg-config --cflags --libs libcurl')
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to