diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2014-05-16 11:47:58 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2014-05-16 13:14:57 -0400 |
commit | c9310a020780e9c226b5ef33ed65c88fce8523b4 (patch) | |
tree | 141a0d120b4594a31a3d3f2ca3b722b7d4080c4c /SConstruct | |
parent | 68c2f37993d8abb7d35a61eb79c7e0e16d021f68 (diff) | |
download | mongo-c9310a020780e9c226b5ef33ed65c88fce8523b4.tar.gz |
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.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 24bccce3cea..4e321a3b5ee 100644 --- a/SConstruct +++ b/SConstruct @@ -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. |