external/liborcus/ExternalProject_liborcus.mk |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 12471c0b1d318c1bb7606ec9e8e6e9f88218f306
Author:     Thorsten Behrens <thorsten.behr...@allotropia.de>
AuthorDate: Fri Feb 9 09:53:52 2024 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Wed Apr 3 08:17:36 2024 +0200

    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.bergm...@allotropia.de>
    Tested-by: Jenkins

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),)

Reply via email to