Browse code

autotools - forcing distcheck to respect the c and c++ compilers specified at configure time

Mickey Sola authored on 2019/02/07 02:17:56
Showing 1 changed files
... ...
@@ -45,7 +45,7 @@ nodist_include_HEADERS = clamav-types.h
45 45
 # don't complain that configuration files and databases are not removed, this is intended
46 46
 distuninstallcheck_listfiles = find . -type f ! -name clamd.conf ! -name freshclam.conf ! -name daily.cvd ! -name main.cvd -print
47 47
 DISTCLEANFILES = target.h
48
-DISTCHECK_CONFIGURE_FLAGS=--enable-milter --disable-clamav --enable-all-jit-targets --enable-llvm=yes --with-system-llvm=no --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
48
+DISTCHECK_CONFIGURE_FLAGS=--enable-milter --disable-clamav --enable-all-jit-targets --enable-llvm=yes --with-system-llvm=no --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) CC="$(CC)" CXX="$(CXX)" YACC="$(YACC)" LEX="$(LEX)" AR="$(AR)" AS="$(AS)"
49 49
 lcov:
50 50
 	($(MAKE); cd unit_tests; $(MAKE) lcov)
51 51
 quick-check: