Update nginx.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user