git: 495843badfe7 - main - devel/binutils: fix build with lld 17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Sep 2023 23:44:10 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=495843badfe7d717f01466b9f41763524e670379
commit 495843badfe7d717f01466b9f41763524e670379
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-14 23:41:41 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-09-14 23:43:08 +0000
devel/binutils: fix build with lld 17
Some versioned symbols in libctf are undefined when libctf-nobfd.so is
linked. Suppress errors with lld >= 17 due to these undefined symbols.
PR: 273791
MFH: 2023Q3
---
devel/binutils/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index 76158eca0d44..7114e9a98614 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -40,6 +40,10 @@ CONFIGURE_ARGS+= --disable-werror \
MAKE_ARGS+= LIBDL="" V=1
MAKE_ENV+= ac_cv_func_sbrk=0
+# Some versioned symbols in libctf are undefined when libctf-nobfd.so is linked.
+# Suppress errors with lld >= 17 due to these undefined symbols.
+LDFLAGS+= -Wl,--undefined-version
+
# Tests will always fail because --compress-debug-sections is always set to
# zlib-gabi regardless of the compression setting by ./configure.
# TEST_TARGET= check