Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / libs / tcp_wrappers / Makefile
index 1ea637f29591f2582e33bbd739f6c2d2ce6e3d37..ca9bfd266bb7d2db163e14b86708248919f29e66 100644 (file)
@@ -13,7 +13,7 @@ PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=ftp://ftp.porcupine.org/pub/security
-PKG_MD5SUM:=e6fa25f71226d090f34de3f6b122fb5a
+PKG_HASH:=9543d7adedf78a6de0b221ccbbd1952e08b5138717f4ade814039bb489a4315d
 
 PKG_LICENSE:=BSD
 PKG_LICENE_FILES:=DISCLAIMER
@@ -32,11 +32,15 @@ endef
 
 TARGET_CFLAGS += $(FPIC)
 
+ifeq ($(CONFIG_USE_MUSL),)
+TARGET_EXTRA_LIBS:=LIBS=-lnsl
+endif
+
 define Build/Compile   
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                OPT_CFLAGS="$(TARGET_CFLAGS)" \
-               LIBS=-lnsl \
+               $(TARGET_EXTRA_LIBS) \
                NETGROUP= \
                VSYSLOG= \
                BUGS= \