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

New commits:
commit 55ea8a5098ef1ab0b6eab234890620a5897eb15b
Author:     Thorsten Behrens <thorsten.behr...@allotropia.de>
AuthorDate: Fri Feb 9 09:53:52 2024 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Fri Mar 29 21:30:52 2024 +0100

    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

diff --git a/external/liborcus/ExternalProject_liborcus.mk 
b/external/liborcus/ExternalProject_liborcus.mk
index 7f2e5f24083f..02df2e035a88 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
+ifeq ($(COM),GCC)
+# 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