diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-11 16:38:59 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-11 18:07:24 +0100 |
commit | c22255e50ee8843c4e4d6c674b704ca33182f0ce (patch) | |
tree | 3ed0eae0a0ea43c79980c22eecb17edfa02f4d92 /package | |
parent | de07a9944763f096d7723761df689e680b45a4db (diff) | |
download | upstream-c22255e50ee8843c4e4d6c674b704ca33182f0ce.tar.gz upstream-c22255e50ee8843c4e4d6c674b704ca33182f0ce.tar.bz2 upstream-c22255e50ee8843c4e4d6c674b704ca33182f0ce.zip |
tcpdump: fix tcpdump-mini build on glibc 2.25
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rw-r--r-- | package/network/utils/tcpdump/patches/100-tcpdump_mini.patch | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/package/network/utils/tcpdump/patches/100-tcpdump_mini.patch b/package/network/utils/tcpdump/patches/100-tcpdump_mini.patch index 26dbe13e3a..618ea0869b 100644 --- a/package/network/utils/tcpdump/patches/100-tcpdump_mini.patch +++ b/package/network/utils/tcpdump/patches/100-tcpdump_mini.patch @@ -1,15 +1,13 @@ --- a/Makefile.in +++ b/Makefile.in -@@ -70,6 +70,82 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@ - @rm -f $@ - $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c +@@ -72,6 +72,80 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@ + + CSRC = setsignal.c tcpdump.c +ifdef TCPDUMP_MINI + -+CSRC=\ -+ tcpdump.c \ ++LIBNETDISSECT_SRC=\ + netdissect.c \ -+ setsignal.c \ + addrtoname.c \ + addrtostr.c \ + af.c \ @@ -80,10 +78,10 @@ + +else + - CSRC = setsignal.c tcpdump.c - LIBNETDISSECT_SRC=\ -@@ -237,12 +313,16 @@ LIBNETDISSECT_SRC=\ + addrtoname.c \ + addrtostr.c \ +@@ -237,6 +311,8 @@ LIBNETDISSECT_SRC=\ strtoaddr.c \ util-print.c @@ -92,27 +90,6 @@ LOCALSRC = @LOCALSRC@ GENSRC = version.c LIBOBJS = @LIBOBJS@ - -+ifndef TCPDUMP_MINI - LIBNETDISSECT_OBJ=$(LIBNETDISSECT_SRC:.c=.o) ${LOCALSRC:.c=.o} ${LIBOBJS} - LIBNETDISSECT=libnetdissect.a -+endif - - - SRC = $(CSRC) $(GENSRC) $(LOCALSRC) $(LIBNETDISSECT_SRC) -@@ -373,10 +453,12 @@ $(PROG): $(OBJ) @V_PCAPDEP@ - @rm -f $@ - $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) - -+ifndef TCPDUMP_MINI - $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ) - @rm -f $@ - $(AR) cr $@ $(LIBNETDISSECT_OBJ) - $(RANLIB) $@ -+endif - - datalinks.o: $(srcdir)/missing/datalinks.c - $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c --- a/addrtoname.c +++ b/addrtoname.c @@ -566,8 +566,10 @@ linkaddr_string(netdissect_options *ndo, |