summaryrefslogtreecommitdiffstats
path: root/patches/libpcap-1.8.1/0001-build-and-install-share-lib-only.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/libpcap-1.8.1/0001-build-and-install-share-lib-only.patch')
-rw-r--r--patches/libpcap-1.8.1/0001-build-and-install-share-lib-only.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/patches/libpcap-1.8.1/0001-build-and-install-share-lib-only.patch b/patches/libpcap-1.8.1/0001-build-and-install-share-lib-only.patch
new file mode 100644
index 000000000..85ce7015d
--- /dev/null
+++ b/patches/libpcap-1.8.1/0001-build-and-install-share-lib-only.patch
@@ -0,0 +1,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) ] || \