git: b259f84ad799 - main - textproc/libxml2: fix build with lld 17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Sep 2023 13:27:53 UTC
The branch main has been updated by dim:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b259f84ad7999066d9c85b5fcba3fbcb29d41915
commit b259f84ad7999066d9c85b5fcba3fbcb29d41915
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-14 17:04:19 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-09-15 13:25:49 +0000
textproc/libxml2: fix build with lld 17
Many symbols in the linker version script libxml2.syms are only defined
when --with-xptr-locs is enabled at configure time. Since version
scripts do not support conditionals, suppress errors with lld >= 17 due
to these undefined symbols.
PR: 273789
MFH: 2023Q3
Approved by: blanket (for desktop and kde)
---
textproc/libxml2/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile
index 831f09d9079f..15eee1cd110c 100644
--- a/textproc/libxml2/Makefile
+++ b/textproc/libxml2/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libxml2
DISTVERSION= 2.10.4
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= textproc gnome
MASTER_SITES= GNOME/sources/${PORTNAME}/${DISTVERSION:R}/
DIST_SUBDIR= gnome
@@ -30,6 +30,11 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/share/ \
--with-lzma=/usr \
--${LIBXML2_SLAVE:Dwith:Uwithout}-python${LIBXML2_SLAVE:D=${PYTHON_CMD}:U}
+# Many symbols in the linker version script libxml2.syms are only defined when
+# --with-xptr-locs is enabled at configure time. Suppress errors with lld >= 17
+# due to these undefined symbols.
+LDFLAGS+= -Wl,--undefined-version
+
INSTALL_TARGET= install-strip
TEST_TARGET= check