[master] d49afc0 distcheck: use the original CFLAGS for the inner configure
Nils Goroll
nils.goroll at uplex.de
Thu Dec 8 15:47:05 CET 2016
commit d49afc041773f915e74a82c962063edde3e1d9eb
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Dec 8 15:45:13 2016 +0100
distcheck: use the original CFLAGS for the inner configure
The previous commit did not solve the issue for all cases
- we also change OFLAGS in configure
diff --git a/Makefile.am b/Makefile.am
index c713812..4c97327 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
--enable-developer-warnings \
--enable-debugging-symbols \
--enable-dependency-tracking \
- CFLAGS="$(OCFLAGS)"
+ CFLAGS="$(EXTCFLAGS)"
install-data-local:
$(install_sh) -d -m 0755 $(DESTDIR)$(localstatedir)/varnish
diff --git a/configure.ac b/configure.ac
index 1957718..27cf34e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,10 @@ AC_CONFIG_AUX_DIR([build-aux])
AC_USE_SYSTEM_EXTENSIONS
# save command line CFLAGS for use in VCC_CC (to pass through things like -m64)
+# and make distcheck configure
OCFLAGS="$CFLAGS"
+EXTCFLAGS="$CFLAGS"
+AC_SUBST(EXTCFLAGS)
AC_CANONICAL_SYSTEM
AC_LANG(C)
More information about the varnish-commit
mailing list