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 0DFFE158041 for ; Fri, 12 Apr 2024 17:42:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D0ACE2A2F; Fri, 12 Apr 2024 17:42:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 1FC9BE2A2F for ; Fri, 12 Apr 2024 17:42:06 +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 57BF5343011 for ; Fri, 12 Apr 2024 17:42:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8EF7B16B3 for ; Fri, 12 Apr 2024 17:42:03 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1712943715.b9442bb7d4da6f324a2830b20269f930b4fb8ccb.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/iproute2/iproute2-6.8.0-r1.ebuild sys-apps/iproute2/iproute2-6.8.0.ebuild X-VCS-Directories: sys-apps/iproute2/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: b9442bb7d4da6f324a2830b20269f930b4fb8ccb X-VCS-Branch: master Date: Fri, 12 Apr 2024 17:42:03 +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: 815eab27-80aa-4f86-b008-82d56e369b84 X-Archives-Hash: 81eab9cfbd4b879cdb82680ca63c1c80 commit: b9442bb7d4da6f324a2830b20269f930b4fb8ccb Author: Patrick McLean gentoo org> AuthorDate: Fri Apr 12 17:40:05 2024 +0000 Commit: Patrick McLean gentoo org> CommitDate: Fri Apr 12 17:41:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9442bb7 sys-apps/iproute2: Make sure that CFLAGS is in LDFLAGS Upstream build system does not automatically add it, and GCC recommends that CFLAGS always be in LDFLAGS. Upstream GCC recommendation is here: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-flto Bug: https://bugs.gentoo.org/929233 Signed-off-by: Patrick McLean gentoo.org> .../iproute2/{iproute2-6.8.0.ebuild => iproute2-6.8.0-r1.ebuild} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys-apps/iproute2/iproute2-6.8.0.ebuild b/sys-apps/iproute2/iproute2-6.8.0-r1.ebuild similarity index 95% rename from sys-apps/iproute2/iproute2-6.8.0.ebuild rename to sys-apps/iproute2/iproute2-6.8.0-r1.ebuild index f8e1ae63ceec..bfc78c186a70 100644 --- a/sys-apps/iproute2/iproute2-6.8.0.ebuild +++ b/sys-apps/iproute2/iproute2-6.8.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit edo toolchain-funcs +inherit edo toolchain-funcs flag-o-matic if [[ ${PV} == 9999 ]] ; then EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" @@ -104,6 +104,11 @@ src_configure() { fi popd >/dev/null || die + # build system does not pass CFLAGS to LDFLAGS, as is recommended by GCC upstream + # https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-flto + # https://bugs.gentoo.org/929233 + append-ldflags ${CFLAGS} + # run "configure" script first which will create "config.mk"... # Using econf breaks since 5.14.0 (a9c3d70d902a0473ee5c13336317006a52ce8242) edo ./configure --color=auto --libbpf_force $(usex bpf on off)