diff options
Diffstat (limited to 'build/conf')
-rw-r--r-- | build/conf/linkers/ld.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/conf/linkers/ld.conf b/build/conf/linkers/ld.conf index 0f4e387619..326d165f6d 100644 --- a/build/conf/linkers/ld.conf +++ b/build/conf/linkers/ld.conf @@ -68,6 +68,13 @@ LD_ICF_FLAG+=$_LD_ICF_FLAG LD_ICF_FLAG+=$_LD_ICF_FLAG_PRINT_SECTIONS ICF_FLAG= +_LD_NO_PIE_FLAG= +when ($_LINKER_ID == "lld" && $PIE != "yes" && ($PIC != "yes" || $PIC_NO_PIE == "yes")) { + when ($OS_LINUX == "yes") { + _LD_NO_PIE_FLAG=-Wl,-no-pie + } +} + STRIP_FLAG= C_LIBRARY_PATH= @@ -159,6 +166,7 @@ _EXE_FLAGS=\ $STRIP_FLAG \ $DCE_FLAG \ $ICF_FLAG \ + $_LD_NO_PIE_FLAG \ $_LINKER_TIME_TRACE_FLAG _SONAME_FLAG=-Wl,$_SONAME_OPTION,$_SONAME |