haproxy: Fix Lua-support for mips(el)
authorChristian Lachner <gladiac@gmail.com>
Wed, 7 Mar 2018 21:38:52 +0000 (22:38 +0100)
committerChristian Lachner <gladiac@gmail.com>
Wed, 7 Mar 2018 21:38:52 +0000 (22:38 +0100)
- TARGET_CFLAGS were missing for haproxy which caused issue #4606 (https://github.com/openwrt/packages/issues/4606)
- All targets finally have Lua support again

Signed-off-by: Christian Lachner <gladiac@gmail.com>
net/haproxy/Makefile

index e5d124b9725a89c5301dce17454ca7cf2742dafa..da0b3c4741ca8c54f537df9c78d1b26f9379fdc7 100644 (file)
@@ -94,13 +94,6 @@ endef
 ENABLE_LUA:=y
 ENABLE_REGPARM:=n
 
-ifeq ($(CONFIG_mips),y)
-  ENABLE_LUA:=n
-endif
-ifeq ($(CONFIG_mipsel),y)
-  ENABLE_LUA:=n
-endif
-
 ifeq ($(CONFIG_TARGET_x86),y)
   ENABLE_REGPARM:=y
 endif
@@ -152,6 +145,7 @@ define Build/Compile
                USE_ZLIB=yes USE_PCRE=1 USE_PCRE_JIT=1 USE_GETADDRINFO=1 \
                VERSION="$(PKG_VERSION)-patch$(PKG_RELEASE)" \
                $(ADDON) \
+               CFLAGS="$(TARGET_CFLAGS)" \
                LD="$(TARGET_CC)" \
                LDFLAGS="$(TARGET_LDFLAGS) -latomic" \
                IGNOREGIT=1