mongodb-2.6.2-fix-scons.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- a/SConstruct 2014-06-16 19:32:46.274507258 +0200
  2. +++ b/SConstruct 2014-06-16 19:34:04.763586829 +0200
  3. @@ -813,7 +813,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. @@ -821,13 +820,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. @@ -844,7 +843,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'):