about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
authorKreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com>2024-08-27 03:37:40 -0300
committerGitHub <noreply@github.com>2024-08-27 08:37:40 +0200
commit50623f32f642abe103d9ec7f46bd46c8c99b4ec6 (patch)
treeaab5487eab917f71b50f5ffbb1ec484b66aeedfa /src/wrapped
parentb5105a1e57bba3305d5dce93ab4d2f7faab6b34a (diff)
downloadbox64-50623f32f642abe103d9ec7f46bd46c8c99b4ec6.tar.gz
box64-50623f32f642abe103d9ec7f46bd46c8c99b4ec6.zip
Revert "[ANDROID] Not use 'libbsd.so' as needed lib and don't define NEEDED_L…" (#1762)
This reverts commit a7c61d8e20d8176ca956b58a4f837c54760ada0b.
Diffstat (limited to 'src/wrapped')
-rw-r--r--src/wrapped/wrappedlibc.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index bb6f73d2..4f7e6dc6 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -3698,11 +3698,27 @@ __attribute__((weak)) uint32_t arc4random()
 #endif
 
 #if defined(ANDROID)
-#define NEEDED_LIBS_DEF   2,\
+#ifdef STATICBUILD
+#define NEEDED_LIBS_DEF   3,\
+    "libpthread.so",        \
     "libdl.so" ,            \
+    "libm.so"
+#define NEEDED_LIBS_234 3,  \
     "libpthread.so",        \
+    "libdl.so" ,            \
     "libm.so"
-#define NEEDED_LIBS_234 0
+#else
+#define NEEDED_LIBS_DEF   4,\
+    "libpthread.so",        \
+    "libdl.so" ,            \
+    "libm.so",              \
+    "libbsd.so"
+#define NEEDED_LIBS_234 4,  \
+    "libpthread.so",        \
+    "libdl.so" ,            \
+    "libm.so",              \
+    "libbsd.so"
+#endif
 #else
 #ifdef STATICBUILD
 #define NEEDED_LIBS_DEF   5,\