about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibxft.c
diff options
context:
space:
mode:
authorKreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com>2023-10-02 13:26:20 -0300
committerGitHub <noreply@github.com>2023-10-02 18:26:20 +0200
commit57b762eb2976229a1297bd39a00976b3753de4d7 (patch)
treebd206d2c812c9e400d933e61486aa1d27cb3927c /src/wrapped/wrappedlibxft.c
parenta4eb0cbd74423b7bdbeb3189c12905340108ec50 (diff)
downloadbox64-57b762eb2976229a1297bd39a00976b3753de4d7.tar.gz
box64-57b762eb2976229a1297bd39a00976b3753de4d7.zip
Add __sF, __assert2 Symbol and set PThread Symbols on libc (#1004)
* Add __sF, __assert2 Symbol and set PThread Symbols on libc

* [ANDROID] Fix Most Library Names
Diffstat (limited to 'src/wrapped/wrappedlibxft.c')
-rw-r--r--src/wrapped/wrappedlibxft.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/wrapped/wrappedlibxft.c b/src/wrapped/wrappedlibxft.c
index b779f938..175b9872 100644
--- a/src/wrapped/wrappedlibxft.c
+++ b/src/wrapped/wrappedlibxft.c
@@ -11,15 +11,29 @@
 #include "librarian/library_private.h"
 #include "x64emu.h"
 
-const char* libxftName = "libXft.so.2";
+#ifdef ANDROID
+    const char* libxftName = "libXft.so";
+#else
+    const char* libxftName = "libXft.so.2";
+#endif
+
 #define LIBNAME libxft
 
-#define CUSTOM_INIT \
-    setNeededLibs(lib, 4,           \
-        "libX11.so.6",              \
-        "libfontconfig.so.1",       \
-        "libXrender.so.1",          \
-        "libfreetype.so.6");
+#ifdef ANDROID
+    #define CUSTOM_INIT \
+        setNeededLibs(lib, 4,           \
+            "libX11.so",              \
+            "libfontconfig.so",       \
+            "libXrender.so",          \
+            "libfreetype.so");
+#else
+    #define CUSTOM_INIT \
+        setNeededLibs(lib, 4,           \
+            "libX11.so.6",              \
+            "libfontconfig.so.1",       \
+            "libXrender.so.1",          \
+            "libfreetype.so.6");
+#endif
 
 #include "wrappedlib_init.h"