Skip to content

Commit 8e12b7f

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.
1 parent 3dc8beb commit 8e12b7f

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
@@ -733,10 +733,14 @@ AC_ARG_WITH(crypto,
733733
734734
#
735735
# Put the subdirectories of the libcrypto root directory
736-
# at the front of the header and library search path.
736+
# at the end of the header and library search path, to
737+
# make sure they come after any -I or -L flags for
738+
# a local libpcap - those must take precedence of any
739+
# directory that might contain an installed version of
740+
# libpcap.
737741
#
738-
V_INCLS="-I$withval/include $V_INCLS"
739-
LIBS="-L$withval/lib $LIBS"
742+
V_INCLS="$V_INCLS -I$withval/include"
743+
LIBS="$LIBS -L$withval/lib"
740744
fi
741745
],[
742746
#

0 commit comments

Comments
 (0)