summaryrefslogtreecommitdiffstats
path: root/patches/libpcap-1.8.1/0100-build-and-install-share-lib-only.patch
blob: 85ce7015dbdec867c24cecd5ca49aa9cb8a77458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Fri, 31 May 2013 17:28:01 +0200
Subject: [PATCH] build and install share lib only

This patch removes the static library from the dependency list
for "all" and "install". This way libpcap.a is not built and
tcpdump cannot link against it.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index e71d973ca448..e0debadeb837 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -358,7 +358,7 @@ EXTRA_DIST = \
 	Win32/Prj/wpcap.vcxproj \
 	Win32/Prj/wpcap.vcxproj.filters
 
-all: libpcap.a shared pcap-config
+all: shared pcap-config
 
 libpcap.a: $(OBJ)
 	@rm -f $@
@@ -550,7 +550,7 @@ selpolltest: tests/selpolltest.c libpcap.a
 valgrindtest: tests/valgrindtest.c libpcap.a
 	$(CC) $(FULL_CFLAGS) -I. -L. -o valgrindtest $(srcdir)/tests/valgrindtest.c libpcap.a $(LIBS)
 
-install: install-shared install-archive pcap-config
+install: install-shared pcap-config
 	[ -d $(DESTDIR)$(libdir) ] || \
 	    (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
 	[ -d $(DESTDIR)$(includedir) ] || \