]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
auxchecks: use outer configure make and compilers
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 7 Mar 2023 07:00:03 +0000 (08:00 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 7 Mar 2023 07:00:03 +0000 (08:00 +0100)
On FreeBSD the hard coded 'make' will switch to BSD make rather
than the outer configure make - GNU make.

Similarly for systems with gcc and clang installed then an outer
'configure CC=clang' and then make auxchecks doesn't propagate
the CC to the inner gsl configure, which will use gcc.

Still need some work on the tarball checksum calculation.

auxprogs/Makefile.am

index c05f82825ee2b131ab2bcbadf2d1ea4c0aefcc4a..9831ee3b4165dfdd25f3f347e4a0fc45d3965b27 100644 (file)
@@ -183,9 +183,9 @@ $(GSL_SRC_DIR)/gsl-patched: $(GSL_TAR)
 $(GSL_BUILD_DIR)/gsl-build: $(GSL_SRC_DIR)/gsl-patched
        mkdir -p $(GSL_BUILD_DIR)
        (cd $(GSL_BUILD_DIR) && \
-        $(GSL_SRC_DIR)/configure CFLAGS="$(GSL_CFLAGS)" && \
-        make -j $(nproc) && \
-        make check -k || true)
+        $(GSL_SRC_DIR)/configure CC="${CC}" CXX="${CXX}" CFLAGS="$(GSL_CFLAGS)" && \
+        ${MAKE} -j $(nproc) && \
+        ${MAKE} check -k || true)
        touch $@
 
 # We hope all tests PASS (so don't produce output except for the test names).