Skip to content

Commit b7d5074

Browse files
committed
autotools: don't put anything before -I and -L flags for local libpcap.
Those might point to a directory with headers and libraries for an installed version of libpcap; if we've already decided to use a local version in the source tree next to us, don't put -I and -L flags from --with-crypto in front of them, put those flags *after* what's already in V_INCLS and LIBS. (cherry picked from commit 8e12b7f)
1 parent 666f3d4 commit b7d5074

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

configure.ac

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,10 +1003,14 @@ AC_ARG_WITH(crypto,
10031003
10041004
#
10051005
# Put the subdirectories of the libcrypto root directory
1006-
# at the front of the header and library search path.
1006+
# at the end of the header and library search path, to
1007+
# make sure they come after any -I or -L flags for
1008+
# a local libpcap - those must take precedence of any
1009+
# directory that might contain an installed version of
1010+
# libpcap.
10071011
#
1008-
V_INCLS="-I$withval/include $V_INCLS"
1009-
LIBS="-L$withval/lib $LIBS"
1012+
V_INCLS="$V_INCLS -I$withval/include"
1013+
LIBS="$LIBS -L$withval/lib"
10101014
fi
10111015
],[
10121016
#

0 commit comments

Comments
 (0)