From: Jonathan McCrohan Date: Sat, 21 Oct 2017 21:12:39 +0000 (+0100) Subject: sslh: simplify Makefile X-Git-Url: http://git.openwrt.org/?p=feed%2Fpackages.git;a=commitdiff_plain;h=770ca2d401143837e212fea3fd087ed8e7623998 sslh: simplify Makefile Fixes bug where sslh was being linked against libconfig, but libconfig CPPFLAGS were being ignored. Signed-off-by: Jonathan McCrohan --- diff --git a/net/sslh/Makefile b/net/sslh/Makefile index 695730d52f..1a4e25c926 100644 --- a/net/sslh/Makefile +++ b/net/sslh/Makefile @@ -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