0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-8467 Don't pass -rdynamic on OS X

On OS X, clang ignores -rdynamic, but issues a warning, which can
be a problem if -Werror is in effect. Remove the flag because
-rdynamic is not needed on OS X.
This commit is contained in:
Andrew Morrow 2013-06-07 16:38:49 -04:00
parent e55d971e46
commit eb5b8b0226

View File

@ -733,7 +733,11 @@ if nix:
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
env.Append( LINKFLAGS=["-fPIC", "-pthread", "-rdynamic"] )
env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
if not darwin:
env.Append( LINKFLAGS=["-rdynamic"] )
env.Append( LIBS=[] )
#make scons colorgcc friendly