about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-20 12:38:57 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-20 12:38:57 +0100
commit291db1530cb122e7235ceb707125caf44ac4560c (patch)
tree0b70113fe64e73d75bf0b32c957f3d245b8754b0
parente77ea1b45cd73bb85516287c9bd5029353631314 (diff)
downloadbox64-291db1530cb122e7235ceb707125caf44ac4560c.tar.gz
box64-291db1530cb122e7235ceb707125caf44ac4560c.zip
[LA64] This should fix static build
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/wrapped/wrappedlibc_private.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 766f531c..b54dbe97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -781,7 +781,7 @@ if(NOT CI)
         OUTPUT "${BOX64_ROOT}/src/wrapped/generated/functions_list.txt"
         COMMAND "${PYTHON_EXECUTABLE}" "${BOX64_ROOT}/rebuild_wrappers.py"
         "${BOX64_ROOT}"
-        "PANDORA" "HAVE_LD80BITS" "NOALIGN" "HAVE_TRACE" "ANDROID" "TERMUX" "STATICBUILD" "--"
+        "PANDORA" "HAVE_LD80BITS" "NOALIGN" "HAVE_TRACE" "ANDROID" "TERMUX" "STATICBUILD" "LA64" "--"
         ${WRAPPEDS_HEAD}
         MAIN_DEPENDENCY "${BOX64_ROOT}/rebuild_wrappers.py"
         DEPENDS ${WRAPPEDS} ${WRAPPEDS_HEAD}
diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h
index 3aedd4a4..1aa1ca3e 100644
--- a/src/wrapped/wrappedlibc_private.h
+++ b/src/wrapped/wrappedlibc_private.h
@@ -1509,7 +1509,11 @@ GOWM(prctl, iFEiLLLL)
 GO(pread, lFipLl)
 GOW(__pread64, lFipLI)
 GO(pread64, lFipLI)
+#ifdef LA64
+GO2(__pread64_chk, lFipLlL, __pread_chk)
+#else
 GO(__pread64_chk, lFipLlL)
+#endif
 GO(__pread_chk, lFipLlL)
 GO(preadv, lFipil)
 GO(preadv2, lFipili)