mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make gold linker less aggressive at discarding boost libs
This commit is contained in:
committed by
Nikolaos D. Bougalis
parent
0c22e0262d
commit
d9337ad43a
@@ -569,7 +569,7 @@ macro(setup_build_boilerplate)
|
|||||||
# An alternative to disabling would be to figure out all the settings
|
# An alternative to disabling would be to figure out all the settings
|
||||||
# required to make gold play nicely with jemalloc.
|
# required to make gold play nicely with jemalloc.
|
||||||
if (("${LD_VERSION}" MATCHES "GNU gold") AND (NOT 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 ()
|
endif ()
|
||||||
unset(LD_VERSION)
|
unset(LD_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user