[master] ab3ab02 When test-compiling to check for jit, also use CFLAGS and LIBS

Nils Goroll nils.goroll at uplex.de
Mon Aug 22 15:04:10 CEST 2016


commit ab3ab0201ea55e337aedfd2e9b78cd18af30522b
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Aug 22 14:59:56 2016 +0200

    When test-compiling to check for jit, also use CFLAGS and LIBS
    
    rather than the values from pkg-config only. CLAGS and LIBS
    may contain important generic compiler / linker flags for this
    platform.

diff --git a/configure.ac b/configure.ac
index 5f3e3bf..fb34c13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,9 +144,9 @@ AC_ARG_ENABLE(pcre-jit,
 if test "$enable_pcre_jit" = yes; then
   AC_MSG_CHECKING(for PCRE JIT usability)
   save_CFLAGS="${CFLAGS}"
-  CFLAGS="${PCRE_CFLAGS}"
+  CFLAGS="${CFLAGS} ${PCRE_CFLAGS}"
   save_LIBS="${LIBS}"
-  LIBS="${PCRE_LIBS}"
+  LIBS="${LIBS} ${PCRE_LIBS}"
   AC_RUN_IFELSE(
     [AC_LANG_PROGRAM([[
 #include <pcre.h>



More information about the varnish-commit mailing list