Files
gentoo/net-analyzer/tcpdump/files/tcpdump-4.99.5-libdir.patch
Sam James 310916be3a net-analyzer/tcpdump: add 4.99.5
Signed-off-by: Sam James <sam@gentoo.org>
2024-09-01 11:10:18 +01:00

30 lines
923 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -427,7 +427,7 @@ fi
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
@@ -1168,7 +1168,7 @@ return 0;
#
AC_LBL_SAVE_CHECK_STATE
CFLAGS="$CFLAGS -I$libcrypto_root/include"
- LIBS="$LIBS -L$libcrypto_root/lib -lcrypto"
+ LIBS="$LIBS -lcrypto"
AC_MSG_CHECKING(whether we have a system OpenSSL/libressl that we can use)
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[
@@ -1182,7 +1182,7 @@ return 0;
AC_MSG_RESULT(yes)
HAVE_LIBCRYPTO=yes
LIBCRYPTO_CFLAGS="-I$libcrypto_root/include"
- LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto"
+ LIBCRYPTO_LIBS="-lcrypto"
],
AC_MSG_RESULT(no))
AC_LBL_RESTORE_CHECK_STATE