Update nginx.sh

This commit is contained in:
wt
2026-03-01 21:04:02 +07:00
parent 6a0c6c50f3
commit 8a72f0c048
+6
View File
@@ -22,6 +22,12 @@ nginx_build() {
check $? "Configure ${pkgname}"
sed -i "/CC =/s/.*/CC=$CROSS_COMPILE-gcc/" objs/Makefile
sed -i "/CPP =/s/.*/CPP=$CROSS_COMPILE-gcc -E/" objs/Makefile
if [ "${ARCH}" = "arm" ]; then
sed -i 's/9223372036854775807/2147483647/g' objs/ngx_auto_config.h
sed -i 's/9223372036854775807LL/2147483647LL/g' objs/ngx_auto_config.h
sed -i 's/9223372036854775807/2147483647/g' src/core/ngx_config.h
sed -i 's/#define NGX_PTR_SIZE 8/#define NGX_PTR_SIZE 4/g' objs/ngx_auto_config.h
fi
make $makeflags
check $? "Build ${pkgname}"
make DESTDIR=$rootfspath install