1
0

005-no--lnsl-on-musl.patch 639 B

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