Update nginx.sh
This commit is contained in:
1 parent
6a0c6c50f3
commit
8a72f0c048
1 file changed
+6
@@ -22,6 +22,12 @@ nginx_build() {
|
|||||||
check $? "Configure ${pkgname}"
|
check $? "Configure ${pkgname}"
|
||||||
sed -i "/CC =/s/.*/CC=$CROSS_COMPILE-gcc/" objs/Makefile
|
sed -i "/CC =/s/.*/CC=$CROSS_COMPILE-gcc/" objs/Makefile
|
||||||
sed -i "/CPP =/s/.*/CPP=$CROSS_COMPILE-gcc -E/" 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
|
make $makeflags
|
||||||
check $? "Build ${pkgname}"
|
check $? "Build ${pkgname}"
|
||||||
make DESTDIR=$rootfspath install
|
make DESTDIR=$rootfspath install
|
||||||
|
|||||||
Reference in new issue
Block a user