diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-11-01 22:27:14 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-11-01 22:44:37 +0000 |
commit | 94ce30c4a0b1044153991c5dd501c802c5c6a0f4 (patch) | |
tree | 24e69e95d383d4891e2ff726bc2fd861e40476b0 /editors/libreoffice | |
parent | 628fb375a5d431df300ba95bde17757b94e9d17a (diff) | |
download | ports-94ce30c4a0b1044153991c5dd501c802c5c6a0f4.tar.gz ports-94ce30c4a0b1044153991c5dd501c802c5c6a0f4.zip |
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
Diffstat (limited to 'editors/libreoffice')
-rw-r--r-- | editors/libreoffice/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
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 |