Skip to content

Commit aae07cc

Browse files
committed
Fixes for musl 1.2.5 <= PHP 8.3
1 parent 06ecda0 commit aae07cc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

compile.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,20 @@ if [ "$IS_CROSSCOMPILE" == "yes" ]; then
391391
DO_STATIC="yes"
392392
OPENSSL_TARGET="linux-aarch64"
393393
export ac_cv_func_fnmatch_works=yes #musl should be OK
394-
export php_cv_type_cookie_off64_t=no #musl 1.2.5
394+
395+
#workarounds for musl 1.2.5, PHP 8.4
396+
export php_cv_type_cookie_off64_t=no
395397
#we don't need these but these also no longer use off64_t
396398
#define them in case someone wants to build an extension which needs them
397399
export php_cv_func_pread=yes
398400
export php_cv_func_pwrite=yes
401+
402+
#workarounds for musl 1.2.5, <= PHP 8.3
403+
export cookie_io_functions_use_off64_t=no
404+
#we don't need these but these also no longer use off64_t
405+
#define them in case someone wants to build an extension which needs them
406+
export ac_cv_pread=yes
407+
export ac_cv_pwrite=yes
399408
write_out "INFO" "Cross-compiling for Android ARMv8 (aarch64)"
400409
#TODO: add cross-compile for aarch64 platforms (ios, rpi)
401410
else

0 commit comments

Comments
 (0)