summaryrefslogtreecommitdiff
path: root/eclass/toolchain.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-30 17:40:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-30 17:40:25 +0100
commit3c78a1ce7924fbf571e133e697f8a29e18d2bf4b (patch)
tree5bbedb5d3c2716d5b332f7e74f54941c9a2b50b8 /eclass/toolchain.eclass
parentc417025a2ab386cddabb71ad598a9b75b47af313 (diff)
gentoo auto-resync : 30:09:2023 - 17:40:25
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 90576f2067ea..8df8b506b0b1 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1693,7 +1693,9 @@ gcc_do_make() {
# XXX: Hack for bug #914881, clean this up when fixed and go back
# to just calling get_abi_LDFLAGS as before.
local abi_ldflags="$(get_abi_LDFLAGS ${TARGET_DEFAULT_ABI})"
- printf -v abi_ldflags -- "-Wl,%s " ${abi_ldflags}
+ if [[ -n ${abi_ldflags} ]] ; then
+ printf -v abi_ldflags -- "-Wl,%s " ${abi_ldflags}
+ fi
# If the host compiler is too old, let's use -O0 per the upstream
# default to be safe (to avoid a bootstrap comparison failure later).