diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-09-06 22:06:16 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-09-06 22:07:43 +0200 |
commit | 7d53382788c01a83443fad67473898c478cdd4c4 (patch) | |
tree | 8cf7d8c104f64fccc5db417a221f6a1eb6b06c54 /net-libs/libnids/files | |
parent | games-engines/love: Maintainer retired (diff) | |
download | gentoo-7d53382788c01a83443fad67473898c478cdd4c4.tar.gz gentoo-7d53382788c01a83443fad67473898c478cdd4c4.tar.bz2 gentoo-7d53382788c01a83443fad67473898c478cdd4c4.zip |
net-libs/libnids: Strip libdir from linker flags
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Closes: https://bugs.gentoo.org/740708
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-libs/libnids/files')
-rw-r--r-- | net-libs/libnids/files/libnids-1.24-libdir.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/net-libs/libnids/files/libnids-1.24-libdir.patch b/net-libs/libnids/files/libnids-1.24-libdir.patch new file mode 100644 index 000000000000..578d9001d16e --- /dev/null +++ b/net-libs/libnids/files/libnids-1.24-libdir.patch @@ -0,0 +1,44 @@ +--- a/configure.in ++++ b/configure.in +@@ -69,7 +69,7 @@ + owd=`pwd` + if cd $withval; then withval=`pwd`; cd $owd; fi + PCAP_CFLAGS="-I$withval -I$withval/bpf" +- PCAPLIB="-L$withval -lpcap" ++ PCAPLIB="-lpcap" + else + AC_ERROR(pcap.h or libpcap.a not found in $withval) + fi +@@ -77,7 +77,7 @@ + esac ], + [ if test -f ${prefix}/include/pcap.h; then + PCAP_CFLAGS="-I${prefix}/include" +- PCAPLIB="-L${exec_prefix}/lib -lpcap" ++ PCAPLIB="-lpcap" + elif test -f /usr/include/pcap/pcap.h; then + PCAP_CFLAGS="-I/usr/include/pcap" + PCAPLIB="-lpcap" +@@ -146,12 +146,12 @@ + owd=`pwd` + if cd $withval; then withval=`pwd`; cd $owd; fi + LNET_CFLAGS="-I$withval/include `$withval/libnet-config --defines`" +- LNETLIB="-L$withval/lib -lnet" ++ LNETLIB="-lnet" + elif test -f $withval/include/libnet.h -a -f $withval/src/libnet.a; then + owd=`pwd` + if cd $withval; then withval=`pwd`; cd $owd; fi + LNET_CFLAGS="-I$withval/include" +- LNETLIB="-L$withval/src -lnet" ++ LNETLIB="-lnet" + else + echo "A working combination of libnet.h, libnet.a and libnet-config not found in $withval; get libnet from www.packetfactory.net/projects/libnet and reinstall" + AC_ERROR(libnet) +@@ -163,7 +163,7 @@ + else + if test -f ${prefix}/include/libnet.h -a ${exec_prefix}/lib/libnet.a ; then + LNET_CFLAGS="-I${prefix}/include `${exec_prefix}/bin/libnet-config --defines 2>/dev/null`" +- LNETLIB="-L${exec_prefix}/lib -lnet" ++ LNETLIB="-lnet" + else + LNET_CFLAGS="`libnet-config --defines 2>/dev/null`" + LNETLIB="-lnet" |