git: 94ce30c4a0b1 - main - editors/libreoffice: fix build with lld 17 (take 2)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Nov 2023 22:46:24 UTC
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=94ce30c4a0b1044153991c5dd501c802c5c6a0f4 commit 94ce30c4a0b1044153991c5dd501c802c5c6a0f4 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-11-01 22:27:14 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-11-01 22:44:37 +0000 editors/libreoffice: fix build with lld 17 (take 2) Building editors/libreoffice with lld 17 results in the following link errors: ld: error: version script assignment of 'PRIVATE_1.4' to symbol '_ZN3sal13backtrace_getEm' failed: symbol not defined ld: error: version script assignment of 'GLIBCXX_3.4' to symbol '_ZNSs4_Rep20_S_empty_rep_storageE' failed: symbol not defined Add -Wl,--undefined-version to LDFLAGS to suppress these error, as the previous fix did not work in all cases. PR: 274697 Approved by: office (blanket) Fixes: 6338934b7c42 MFH: 2024Q4 --- editors/libreoffice/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile index 0233368c3362..ea979227381f 100644 --- a/editors/libreoffice/Makefile +++ b/editors/libreoffice/Makefile @@ -364,6 +364,8 @@ CXXFLAGS_WARN= -Woverloaded-virtual -Wno-c++11-narrowing \ CXXFLAGS_WARN= -Wshadow -Woverloaded-virtual .endif +LDFLAGS+= -Wl,--undefined-version + post-patch: .if ${COMPILER_FEATURES:Mlibstdc++} ${REINPLACE_CMD} -e 's/gb_CC/gb_CXX/' ${WRKSRC}/solenv/gbuild/platform/unxgcc.mk