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.