]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Change configure to allow statically linking libpcre.
authorKen Steele <ken@tilera.com>
Tue, 11 Mar 2014 15:34:45 +0000 (11:34 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Mar 2014 10:40:57 +0000 (11:40 +0100)
Statically linking libpcre requires using -lpthread, which is added
when building Suricata, but not while checking for libpcre in configure.

configure.ac

index a2f0bf8f1719d73225bc802d0fc1d018cc1d7429..86f8a74c55295c01afd17065ddb42ec5506fef4b 100644 (file)
         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"