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

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Mon Sep 12 15:48:16 CEST 2016


commit a913c08f9050ed270f8b67777ad7841a3b7153be
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 7a0a7de..72554d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,9 +160,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