From 46a9f65fe01e46627c386f2d8850e4ced94ddaea Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Thu, 28 Nov 2013 19:47:35 +0100 Subject: [PATCH] Fix a link error with libpcre Libpcre was linked at the beginning of the link command. It was fine with some compilers but not with others. Libraries are supposed to be linked after every *.o file that use them or some linker (gold?) reports errors about undefined references to functions. Thanks to Micha Voss for reporting this problem and testing the solution. Conflicts: configure.in --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3cf21af..696886d 100644 --- a/configure.in +++ b/configure.in @@ -133,7 +133,7 @@ AS_HELP_STRING([--with-pcre],[Compile with support for the Perl Compatible Regul if ( test "x$with_pcre" != "xno" ) ; then AC_CHECK_HEADERS(pcre.h) if ( test "x$ac_cv_header_pcre_h" == "xyes" ) ; then - LDFLAGS="$LDFLAGS $(pcre-config --libs)" + LIBS="$LIBS $(pcre-config --libs)" CFLAGS="$CFLAGS $(pcre-config --cflags)" else pcre_status="not found" -- 2.47.2