aboutsummaryrefslogtreecommitdiffstats
path: root/build/conf/linkers/ld.conf
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-05-16 16:18:40 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-05-16 16:18:40 +0300
commit5e43bd290eea0c0799394c484e7c77ccd452eba8 (patch)
treedf8484d8a419ee4c3a438eea0ffad9a725bd869e /build/conf/linkers/ld.conf
parentca04e360f54a3601b44d9227ad5898a14bc69b73 (diff)
downloadydb-5e43bd290eea0c0799394c484e7c77ccd452eba8.tar.gz
Use lld linker on Linux unless USE_LINKER_GOLD() is explicitly specified
* Drop heuristical switching to gold when compiling with gcc and musl * Drop `USE_LINKER_BFD()` and `USE_LINKER_LLD()` macros. * User can still request to `USE_LINKER_GOLD()`, as it is capable to workaround _relocation out of range_ problem in certain cases. ref:3c5181f8be6eb35067f5cfe14aad3e7d2a1748eb
Diffstat (limited to 'build/conf/linkers/ld.conf')
-rw-r--r--build/conf/linkers/ld.conf6
1 files changed, 0 insertions, 6 deletions
diff --git a/build/conf/linkers/ld.conf b/build/conf/linkers/ld.conf
index ede939564b..90f548edbf 100644
--- a/build/conf/linkers/ld.conf
+++ b/build/conf/linkers/ld.conf
@@ -2,12 +2,6 @@ _LD_FLAGS_1=
_LD_FLAGS_2=
when ($MUSL == "yes") {
_LD_FLAGS_1=-Wl,--no-as-needed
- when ($GCC == "yes") {
- # MUSL_BFD: musl build uses --no-dynamic-linker linker flag
- # which gold doesn't know about. And we can only specify linker
- # type, not it's path as we do for Clang through linker selector.
- _LD_FLAGS_2=-fuse-ld=bfd
- }
}
elsewhen ($OS_LINUX == "yes") {
_LD_FLAGS_1=-ldl -lrt -Wl,--no-as-needed