Change configure to allow statically linking libpcre.

Statically linking libpcre requires using -lpthread, which is added
when building Suricata, but not while checking for libpcre in configure.
pull/905/merge
Ken Steele 12 years ago committed by Victor Julien
parent b9227ad20c
commit 0011e01e05

@ -418,7 +418,7 @@
LDFLAGS="${LDFLAGS} -L${with_libpcre_libraries}" LDFLAGS="${LDFLAGS} -L${with_libpcre_libraries}"
fi fi
PCRE="" PCRE=""
AC_CHECK_LIB(pcre, pcre_get_substring,, PCRE="no") AC_CHECK_LIB(pcre, pcre_get_substring,, PCRE="no",-lpthread)
if test "$PCRE" = "no"; then if test "$PCRE" = "no"; then
echo echo
echo " ERROR! pcre library not found, go get it" echo " ERROR! pcre library not found, go get it"

Loading…
Cancel
Save