From 343256752ace821bfd8f1ca923ae0be1a78d4b83 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 12 Nov 2023 18:29:33 +0100 Subject: [PATCH] configure.ac: call $CC not gcc --- CHANGES | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 352eabc..b6fb701 100644 --- a/CHANGES +++ b/CHANGES @@ -256,6 +256,10 @@ Corrections: Fixed the end-close option, it just did not work. + In configure.ac was a direct call to gcc instead of $CC which broke + cross compiling. + Thanks to Fergus Dall for sending a patch. + Coding: Introduced groups_t instead of uint32_t, for more flexibility. diff --git a/configure.ac b/configure.ac index 1107e5d..aa3c84d 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,7 @@ fi # find out which defines gcc passes to cpp, so makedepend does not run into # (harmless) "error architecture not supported" AC_MSG_CHECKING(which defines needed for makedepend) -__cpp_defs=`gcc -v -E - &1 |$FGREP -e '/cpp ' -e '/cc1 '` +__cpp_defs=`$CC -v -E - &1 |$FGREP -e '/cpp ' -e '/cc1 '` SYSDEFS=`aa=; for a in $__cpp_defs do case "$a" in -D*) aa="$aa $a";; esac; done; echo "$aa"` AC_SUBST(SYSDEFS)