Skip to content

Commit

Permalink
[LA64] This should fix static build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Dec 20, 2024
1 parent e77ea1b commit 291db15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 4 additions & 0 deletions src/wrapped/wrappedlibc_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 291db15

Please sign in to comment.