public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/xdp-tools/
Date: Wed, 22 Nov 2023 12:02:54 +0000 (UTC)	[thread overview]
Message-ID: <1700654534.36b6b67f771d5ec4373578e1599c013b7e679b24.sam@gentoo> (raw)

commit:     36b6b67f771d5ec4373578e1599c013b7e679b24
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Thu Nov  2 11:17:12 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 12:02:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36b6b67f

net-libs/xdp-tools: force use of ld.bfd

lld needs special care for embeddings in object files and this is not (yet)
supported by upstream, so just force ld.bfd instead of creating more
complications.

Bug: https://bugs.gentoo.org/916591
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/xdp-tools/xdp-tools-1.4.1.ebuild | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/net-libs/xdp-tools/xdp-tools-1.4.1.ebuild b/net-libs/xdp-tools/xdp-tools-1.4.1.ebuild
index 5fd0485f706d..520357d07664 100644
--- a/net-libs/xdp-tools/xdp-tools-1.4.1.ebuild
+++ b/net-libs/xdp-tools/xdp-tools-1.4.1.ebuild
@@ -45,8 +45,16 @@ src_prepare() {
 }
 
 src_configure() {
+	# filter LTO: #861587
+	filter-lto
+
+	# filter LDFLAGS some more: #916591
+	filter-ldflags -Wl,--{icf,lto}*
+
+	# force ld.bfd: #916591
+	tc-ld-force-bfd
+
 	export CC="$(tc-getCC)"
-	export LD="$(tc-getLD)"
 	export PREFIX="${EPREFIX}/usr"
 	export LIBDIR="${PREFIX}/$(get_libdir)"
 	export BPF_OBJECT_DIR="${PREFIX}/lib/bpf"
@@ -54,9 +62,6 @@ src_configure() {
 	export DYNAMIC_LIBXDP=1
 	export FORCE_SYSTEM_LIBBPF=1
 
-	# bug 861587
-	filter-lto
-
 	default
 }
 


             reply	other threads:[~2023-11-22 12:02 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-22 12:02 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-12  5:53 [gentoo-commits] repo/gentoo:master commit in: net-libs/xdp-tools/ Joonas Niilola
2024-08-28  6:39 Joonas Niilola
2024-08-09 14:39 Arthur Zamarin
2024-06-21 18:22 Sam James
2024-03-26 20:17 Ionen Wolkens
2024-03-26 20:17 Ionen Wolkens
2024-03-21  2:41 Sam James
2024-02-19  7:35 Sam James
2023-12-27 15:47 Sam James
2023-12-24 23:07 Conrad Kostecki
2023-10-06 18:08 Sam James
2023-08-27 20:30 Sam James
2023-08-12 21:07 Marek Szuba
2023-03-06 21:32 Sam James
2023-03-06 13:44 Arthur Zamarin
2023-03-06 12:52 Arthur Zamarin
2023-03-05 14:38 Sam James
2023-03-05 14:38 Sam James
2023-03-05 14:38 Sam James
2022-04-07 16:25 Jason A. Donenfeld
2022-04-05  0:21 Jason A. Donenfeld
2022-02-05 23:59 Jason A. Donenfeld
2021-12-27 17:38 Arthur Zamarin
2021-12-27 17:37 Arthur Zamarin
2021-10-29 12:26 Jason A. Donenfeld
2021-10-29 12:18 Jason A. Donenfeld
2021-10-29 12:10 Jason A. Donenfeld
2021-10-29 12:01 Jason A. Donenfeld
2021-10-29 11:54 Jason A. Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1700654534.36b6b67f771d5ec4373578e1599c013b7e679b24.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox