aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-12-23 16:59:59 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-12-24 10:08:43 +0000
commitb547544132486acbe86da6d9e729ae13a4fd6e54 (patch)
tree3fbfdeeaac4ce16a40ce76984b6ccba2c227ab8a
parent08ff7700f244f5157f03dbb1a67ade35d32ed4c4 (diff)
downloadports-b547544132486acbe86da6d9e729ae13a4fd6e54.tar.gz
ports-b547544132486acbe86da6d9e729ae13a4fd6e54.zip
devel/libffi: fix build with lld17
ld: error: version script assignment of 'LIBFFI_BASE_8.0' to symbol 'ffi_type_longdouble' failed: symbol not defined
-rw-r--r--devel/libffi/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/libffi/Makefile b/devel/libffi/Makefile
index 323748103ded..6385271efbdd 100644
--- a/devel/libffi/Makefile
+++ b/devel/libffi/Makefile
@@ -22,6 +22,8 @@ INSTALL_TARGET= install-strip
INFO= libffi
TEST_TARGET= check
+LDFLAGS+= -Wl,--undefined-version
+
post-patch:
@${REINPLACE_CMD} -e 's| -Wno-psabi||g' \
${WRKSRC}/testsuite/lib/libffi.exp