From 01c9157fceb3ae0ef97effdb323c32d14e0f7be1 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 4 Nov 2024 13:45:38 +0100 Subject: [ANDROID] Try to fix libfontconfig not loading properly --- src/wrapped/wrappedexpat.c | 1 + src/wrapped/wrappedfontconfig.c | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src') 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" -- cgit 1.4.1