Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=369d44068e7c0e0fcf52504a56a8533806cc882d
commit 369d44068e7c0e0fcf52504a56a8533806cc882d Author: James Buren <[email protected]> Date: Wed Oct 8 21:30:38 2014 -0500 scons: add required CPP defined macros diff --git a/SConstruct b/SConstruct index 831e5aa..383f92a 100755 --- a/SConstruct +++ b/SConstruct @@ -138,16 +138,22 @@ cfg.CheckFunc('strverscmp') env = cfg.Finish() # Set C compiler only flags -env.Append(CFLAGS = '-std=c99') +env.Append(CFLAGS = ['-std=c99']) # Set C++ compiler only flags -env.Append(CXXFLAGS = '-std=c++11') +env.Append(CXXFLAGS = ['-std=c++11']) + +# Set CPP include directories +env.Append(CPPPATH = ['lib/libpacman']) + +# Set CPP macros +env.Append(CPPDEFINES = ['_GNU_SOURCE', '_LARGEFILE64_SOURCE']) # Set debugging or no debugging flags if GetOption('debug'): - env.Append(CCFLAGS = '-g') + env.Append(CCFLAGS = ['-g']) else: - env.Append(CCFLAGS = '-DNDEBUG') + env.Append(CPPDEFINES = ['NDEBUG']) # Set flags for libarchive env.ParseConfig('pkg-config --cflags --libs libarchive') @@ -155,9 +161,6 @@ env.ParseConfig('pkg-config --cflags --libs libarchive') # Set flags for libcurl env.ParseConfig('pkg-config --cflags --libs libcurl') -# Set local include directories -env.Append(CPPPATH = 'lib/libpacman') - # flib source files flib_sources = [ 'lib/libpacman/kernel/fobject.cpp', _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
