Skip to content

Commit

Permalink
Make gold linker less aggressive at discarding boost libs
Browse files Browse the repository at this point in the history
  • Loading branch information
mellery451 authored and nbougalis committed Jan 12, 2018
1 parent 0c22e02 commit d9337ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Builds/CMake/CMakeFuncs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ macro(setup_build_boilerplate)
# An alternative to disabling would be to figure out all the settings
# required to make gold play nicely with jemalloc.
if (("${LD_VERSION}" MATCHES "GNU gold") AND (NOT jemalloc))
append_flags(CMAKE_EXE_LINKER_FLAGS -fuse-ld=gold)
append_flags(CMAKE_EXE_LINKER_FLAGS -fuse-ld=gold -Wl,--no-as-needed)
endif ()
unset(LD_VERSION)
endif()
Expand Down

0 comments on commit d9337ad

Please sign in to comment.