mongodb-3.0.0-fix-scons.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- SConstruct.orig 2015-02-05 16:33:41.000000000 +0000
  2. +++ SConstruct 2015-02-18 08:21:23.120134258 +0000
  3. @@ -1008,7 +1008,6 @@
  4. # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
  5. env.Append( CCFLAGS=["-fPIC",
  6. "-fno-strict-aliasing",
  7. - "-ggdb",
  8. "-pthread",
  9. "-Wall",
  10. "-Wsign-compare",
  11. @@ -1016,13 +1015,13 @@
  12. "-Winvalid-pch"] )
  13. # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
  14. if linux or darwin:
  15. - env.Append( CCFLAGS=["-pipe"] )
  16. if not has_option("disable-warnings-as-errors"):
  17. env.Append( CCFLAGS=["-Werror"] )
  18. env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
  19. - env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
  20. env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
  21. + env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
  22. + env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
  23. # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
  24. # startup.
  25. @@ -1039,7 +1038,7 @@
  26. if not darwin:
  27. env.Append( LINKFLAGS=["-rdynamic"] )
  28. - env.Append( LIBS=[] )
  29. + env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] )
  30. #make scons colorgcc friendly
  31. for key in ('HOME', 'TERM'):