sslh: simplify Makefile
authorJonathan McCrohan <jmccrohan@gmail.com>
Sat, 21 Oct 2017 21:12:39 +0000 (22:12 +0100)
committerJonathan McCrohan <jmccrohan@gmail.com>
Sat, 21 Oct 2017 21:12:39 +0000 (22:12 +0100)
Fixes bug where sslh was being linked against libconfig, but libconfig
CPPFLAGS were being ignored.

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
net/sslh/Makefile

index 695730d52f33821933b83c0d343ba4b1e123e042..1a4e25c926edadbf5a803bb0ab693bc22436cca8 100644 (file)
@@ -34,19 +34,8 @@ define Package/sslh/conffiles
 /etc/sslh.conf
 endef
 
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               CC="$(TARGET_CC)" \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               CPPFLAGS="$(TARGET_CPPFLAGS)" \
-               LDFLAGS="$(TARGET_LDFLAGS)" \
-               ENABLE_REGEX=1 \
-               USELIBCONFIG=1 \
-               USELIBWRAP= \
-               USELIBPCRE= \
-               $(if $(CONFIG_USE_GLIBC),USELIBPCRE=,USELIBPCRE=1)\
-               all
-endef
+MAKE_FLAGS += \
+  $(if $(CONFIG_USE_GLIBC),USELIBPCRE=,USELIBPCRE=1)
 
 define Package/sslh/install
        $(INSTALL_DIR) $(1)/usr/sbin