mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #11242 from peter-stadler/nginx
nginx: fix endianness issue with http2
This commit is contained in:
+3
-1
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=nginx
|
PKG_NAME:=nginx
|
||||||
PKG_VERSION:=1.17.7
|
PKG_VERSION:=1.17.7
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://nginx.org/download/
|
PKG_SOURCE_URL:=https://nginx.org/download/
|
||||||
@@ -361,6 +361,8 @@ ifeq ($(CONFIG_NGINX_LUA),y)
|
|||||||
LUA_LIB=$(STAGING_DIR)/usr/lib
|
LUA_LIB=$(STAGING_DIR)/usr/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
CONFIGURE_VARS += CONFIG_BIG_ENDIAN=$(CONFIG_BIG_ENDIAN)
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--crossbuild=Linux::$(ARCH) \
|
--crossbuild=Linux::$(ARCH) \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
|||||||
@@ -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