From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8982A158089 for ; Sat, 30 Sep 2023 10:34:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6CEE2BC022; Sat, 30 Sep 2023 10:34:15 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AFE412BC022 for ; Sat, 30 Sep 2023 10:34:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3211335C67 for ; Sat, 30 Sep 2023 10:34:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E030A1146 for ; Sat, 30 Sep 2023 10:34:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1696070047.7a1590d2e910c2a6d48aad377c34cf104cc486cb.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7a1590d2e910c2a6d48aad377c34cf104cc486cb X-VCS-Branch: master Date: Sat, 30 Sep 2023 10:34:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c81aede7-7814-4f21-8361-b770ab5c7d03 X-Archives-Hash: c067a632f4d6bfb3acbaa16e347b6466 commit: 7a1590d2e910c2a6d48aad377c34cf104cc486cb Author: Sam James gentoo org> AuthorDate: Sat Sep 30 10:33:58 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Sep 30 10:34:07 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a1590d2 toolchain.eclass: handle ABIs with no multilib flags Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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).