mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 01:44:32 +04:00
nginx: fix endianness issue #8988
Patch the auto/endianess file to use CONFIG_BIG_ENDIAN. Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
This commit is contained in:
21
net/nginx/patches/104-endianness_fix.patch
Normal file
21
net/nginx/patches/104-endianness_fix.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/auto/endianness b/auto/endianness
|
||||
index 1b552b6b..2b6f9ea4 100644
|
||||
--- a/auto/endianness
|
||||
+++ b/auto/endianness
|
||||
@@ -12,6 +12,16 @@ checking for system byte ordering
|
||||
|
||||
END
|
||||
|
||||
+if [ "${CONFIG_BIG_ENDIAN}" != "y" ]; then
|
||||
+ echo " little endian"
|
||||
+ have=NGX_HAVE_LITTLE_ENDIAN . auto/have
|
||||
+else
|
||||
+ echo " big endian"
|
||||
+fi
|
||||
+
|
||||
+return
|
||||
+
|
||||
+
|
||||
|
||||
cat << END > $NGX_AUTOTEST.c
|
||||
|
||||
Reference in New Issue
Block a user