From 0011e01e05ac6b140c98f2d432685a6024043f5c Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Tue, 11 Mar 2014 11:34:45 -0400 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"