about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-11-04 13:45:38 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-11-04 13:45:38 +0100
commit01c9157fceb3ae0ef97effdb323c32d14e0f7be1 (patch)
treed4090eaade36be5163a216fd200aef911d2aa194 /src
parent3448e941710dbf11d2772d5782a0b2d44e7892b1 (diff)
downloadbox64-01c9157fceb3ae0ef97effdb323c32d14e0f7be1.tar.gz
box64-01c9157fceb3ae0ef97effdb323c32d14e0f7be1.zip
[ANDROID] Try to fix libfontconfig not loading properly
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedexpat.c1
-rw-r--r--src/wrapped/wrappedfontconfig.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/wrapped/wrappedexpat.c b/src/wrapped/wrappedexpat.c
index be880b8b..84afb85b 100644
--- a/src/wrapped/wrappedexpat.c
+++ b/src/wrapped/wrappedexpat.c
@@ -20,6 +20,7 @@
 
 const char* expatName = "libexpat.so.1";
 #define LIBNAME expat
+#define ALTNAME "libexpat.so"
 
 #include "generated/wrappedexpattypes.h"
 
diff --git a/src/wrapped/wrappedfontconfig.c b/src/wrapped/wrappedfontconfig.c
index 41ef3507..246f5e92 100644
--- a/src/wrapped/wrappedfontconfig.c
+++ b/src/wrapped/wrappedfontconfig.c
@@ -66,6 +66,10 @@ EXPORT void* my_FcPatternBuild(x64emu_t* emu, void* pattern, uint64_t* b)
     return my->FcPatternVaBuild(pattern, VARARGS);
 }
 
+#ifdef ANDROID
+#define NEEDED_LIBS "libexpat.so", "libfreetype.so"
+#else
 #define NEEDED_LIBS "libexpat.so.1", "libfreetype.so.6"
+#endif
 
 #include "wrappedlib_init.h"