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

SERVER-13944 Switch back to -fPIC instead of -fPIE to fix RHEL6.2 build.

On RHEL6 builders, the -fPIE compiler flag causes the mongo shell to make
a pure virtual function call inside the V8 engine at startup.  Since
the swtitch to -fPIE was unnecessary for SERVER-13944, switching back to
-fPIC pending investigation.
This commit is contained in:
Andy Schwerin 2014-05-16 11:47:58 -04:00
parent 68c2f37993
commit c9310a0207

View File

@ -765,7 +765,7 @@ if nix:
env["CXX"] = "distcc " + env["CXX"]
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
env.Append( CCFLAGS=["-fPIE",
env.Append( CCFLAGS=["-fPIC",
"-fno-strict-aliasing",
"-ggdb",
"-pthread",
@ -781,7 +781,7 @@ if nix:
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
env.Append( LINKFLAGS=["-fPIE", "-pthread"] )
env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
# SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
# startup.