]> git.pld-linux.org Git - packages/mongodb.git/blob - mongodb-cflags.patch
- fix for "'swap' is not a member of 'std'" in gcc 4
[packages/mongodb.git] / mongodb-cflags.patch
1 --- mongodb-src-r2.2.0.orig/SConstruct  2012-08-28 07:28:11.000000000 +0200
2 +++ mongodb-src-r2.2.0/SConstruct       2012-09-28 13:17:32.000000000 +0200
3 @@ -712,7 +712,8 @@
4          env.Append( CCFLAGS=["-O0", "-fstack-protector"] )
5          env['ENV']['GLIBCXX_FORCE_NEW'] = 1; # play nice with valgrind
6      else:
7 -        env.Append( CCFLAGS=["-O3"] )
8 +        env.Append( CCFLAGS=ARGUMENTS.get("CXXFLAGS", "-O3").split() )
9 +        env.Append( CPPDEFINES=ARGUMENTS.get("CPPFLAGS", "").split() )
10  
11      if debugLogging:
12          env.Append( CPPDEFINES=["_DEBUG"] );
This page took 0.053748 seconds and 3 git commands to generate.