summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-01-09 14:38:41 +0100
committerJeroen Roovers <jer@gentoo.org>2020-01-09 14:39:04 +0100
commit516ec63aca5466fc1d9d1a444f51128dc17a0852 (patch)
tree61b38e1fd4813033b7306bcb086e5d22a8eb4af9 /net-analyzer/tcpdump/files
parentnet-libs/libpcap: Add USE=usb dependency, drop KEYWORDS=riscv (diff)
downloadgentoo-516ec63aca5466fc1d9d1a444f51128dc17a0852.tar.gz
gentoo-516ec63aca5466fc1d9d1a444f51128dc17a0852.tar.bz2
gentoo-516ec63aca5466fc1d9d1a444f51128dc17a0852.zip
net-analyzer/tcpdump: Prevent more -L/usr/lib injections
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/tcpdump/files')
-rw-r--r--net-analyzer/tcpdump/files/tcpdump-9999-libdir.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/tcpdump/files/tcpdump-9999-libdir.patch b/net-analyzer/tcpdump/files/tcpdump-9999-libdir.patch
new file mode 100644
index 000000000000..852ea6b6c132
--- /dev/null
+++ b/net-analyzer/tcpdump/files/tcpdump-9999-libdir.patch
@@ -0,0 +1,19 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -371,7 +371,7 @@
+
+ if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
+ if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
+- LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
++ LIBS="-l$ipv6lib $LIBS"
+ echo "You have $ipv6lib library, using it"
+ else
+ if test "$ipv6trylibc" = "yes"; then
+@@ -891,7 +891,6 @@
+ # at the front of the header and library search path.
+ #
+ CFLAGS="-I$withval/include $CFLAGS"
+- LIBS="-L$withval/lib $LIBS"
+ fi
+ ],[
+ #