From: Ken Steele Date: Tue, 11 Mar 2014 15:34:45 +0000 (-0400) Subject: Change configure to allow statically linking libpcre. X-Git-Tag: suricata-2.0.1rc1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0011e01e05ac6b140c98f2d432685a6024043f5c;p=thirdparty%2Fsuricata.git 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. --- diff --git a/configure.ac b/configure.ac index a2f0bf8f17..86f8a74c55 100644 --- a/configure.ac +++ b/configure.ac @@ -418,7 +418,7 @@ LDFLAGS="${LDFLAGS} -L${with_libpcre_libraries}" fi 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 echo echo " ERROR! pcre library not found, go get it"