1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 10:59:13 +02:00

tcp_wrappers: don't set LIBS=-lnsl when building with musl

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-04-25 23:19:30 +02:00
parent 142a24a10b
commit 544486252c
2 changed files with 27 additions and 1 deletions

View File

@ -32,11 +32,15 @@ endef
TARGET_CFLAGS += $(FPIC) TARGET_CFLAGS += $(FPIC)
ifeq ($(CONFIG_USE_MUSL),)
TARGET_EXTRA_LIBS:=LIBS=-lnsl
endif
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
OPT_CFLAGS="$(TARGET_CFLAGS)" \ OPT_CFLAGS="$(TARGET_CFLAGS)" \
LIBS=-lnsl \ $(TARGET_EXTRA_LIBS) \
NETGROUP= \ NETGROUP= \
VSYSLOG= \ VSYSLOG= \
BUGS= \ BUGS= \

View File

@ -0,0 +1,22 @@
Index: tcp_wrappers_7.6/Makefile
===================================================================
--- tcp_wrappers_7.6.orig/Makefile
+++ tcp_wrappers_7.6/Makefile
@@ -1,4 +1,4 @@
-GLIBC=$(shell grep -s -c __GLIBC__ /usr/include/features.h)
+GLIBC=$(shell grep -s -c __GLIBC__ ${STAGING_DIR}/usr/include/features.h)
# @(#) Makefile 1.23 97/03/21 19:27:20
@@ -146,9 +146,11 @@ freebsd:
LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
+ifneq ($(GLIBC),)
ifneq ($(GLIBC),0)
MYLIB=-lnsl
endif
+endif
linux:
@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \