git: b54754413248 - main - devel/libffi: fix build with lld17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Dec 2023 10:08:55 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b547544132486acbe86da6d9e729ae13a4fd6e54
commit b547544132486acbe86da6d9e729ae13a4fd6e54
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-12-23 16:59:59 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-12-24 10:08:43 +0000
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
---
devel/libffi/Makefile | 2 ++
1 file changed, 2 insertions(+)
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