summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <thorsten.behrens@allotropia.de>2024-02-09 09:53:52 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-04-03 08:17:36 +0200
commit12471c0b1d318c1bb7606ec9e8e6e9f88218f306 (patch)
tree05d9818b902749918e8a93bcf6a80e5be30e3514
parent677b13aa5c695b44ada7a0b11d6c9b91fc38ff51 (diff)
Fix liborcus missing filesystem::file_size linker error
On baseline gcc 8.3.1, liborcus-parser is missing a few of those experimental stdc++ symbols: liborcus-parser-0.18.so.0: undefined symbol: _ZNSt10filesystem9file_sizeERKNS_4pathE" Change-Id: I253d45d5966f0e99143b1fe983bd4d336178cd66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163207 Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de> Tested-by: Jenkins
-rw-r--r--external/liborcus/ExternalProject_liborcus.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/external/liborcus/ExternalProject_liborcus.mk b/external/liborcus/ExternalProject_liborcus.mk
index 7f2e5f24083f..1e500e531e51 100644
--- a/external/liborcus/ExternalProject_liborcus.mk
+++ b/external/liborcus/ExternalProject_liborcus.mk
@@ -46,6 +46,11 @@ endif
ifeq ($(OS),ANDROID)
liborcus_LIBS+=$(gb_STDLIBS)
endif
+ifneq ($(HAVE_LIBSTDCPP),)
+# fix std::filesystem linker error:
+# https://stackoverflow.com/questions/33149878/experimentalfilesystem-linker-error
+liborcus_LIBS+=-lstdc++fs
+endif
liborcus_CPPFLAGS=$(CPPFLAGS)
ifeq ($(SYSTEM_ZLIB),)