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.
$(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).