diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-09-14 17:04:19 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-09-15 13:25:49 +0000 |
commit | b259f84ad7999066d9c85b5fcba3fbcb29d41915 (patch) | |
tree | d0bb78e1f351d8dbb9f3c8635a95f5851919f7a3 | |
parent | eae03f41a03799a8ed859f8e861f1603cc2728ce (diff) | |
download | ports-b259f84ad7999066d9c85b5fcba3fbcb29d41915.tar.gz ports-b259f84ad7999066d9c85b5fcba3fbcb29d41915.zip |
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)
-rw-r--r-- | textproc/libxml2/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 |