diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/SConscript.main | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build/SConscript.main b/build/SConscript.main index 18183b7..de3fa16 100644 --- a/build/SConscript.main +++ b/build/SConscript.main @@ -347,10 +347,10 @@ elif env['PLATFORM'] == 'posix': '-Wno-multichar', ] env.Replace( - CCFLAGS = ['-m32', '-g', '-Wall', '-Werror'] + excluded_warnings, - LINKFLAGS = ['-m32'], - # We need pthread for threading, and rt for clock_gettime. - LIBS = ['pthread', 'rt'], + CCFLAGS = ['-m32', '-g', '-pthread', '-Wall', '-Werror'] + excluded_warnings, + LINKFLAGS = ['-m32', '-pthread'], + # We need rt for clock_gettime. + LIBS = ['rt'], PERL = '/usr/bin/perl', PERL_INCLUDE_FLAG = '-I ', @@ -365,6 +365,8 @@ elif env['PLATFORM'] == 'posix': env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage']) env.Append(LINKFLAGS=['-fprofile-arcs']) + # Build with system-provided NSS + env.ParseConfig('pkg-config --cflags --libs nss') else: print "Unsupported SCons $PLATFORM value %s" % repr(env['PLATFORM']) |