From 28d5c5e54f6ab808464af7c3f59502f57d82446b Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Mon, 22 Jun 2020 10:11:08 +0200 Subject: [PATCH] macos: apply readlink to get exact compiler name --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index c762ea33..de55672e 100755 --- a/configure +++ b/configure @@ -48,14 +48,16 @@ cpu= cpuver= gcc_major=0 gcc_minor=0 +gcc_name="gcc" # OS specific targetos=`uname` case $targetos in Darwin) confvars="$confvars OSX" + cc=`which cc` + cc=`readlink $cc` tcc_usrinclude="`xcrun --show-sdk-path`/usr/include" - cc="clang" DLLSUF=".dylib" ;; Windows_NT|MINGW*|MSYS*|CYGWIN*) @@ -323,6 +325,7 @@ if test -z "$cross_prefix" ; then else gcc_major="$($CONFTEST version)" gcc_minor="$($CONFTEST minor)" + gcc_name="$($CONFTEST compiler)" fi bigendian="$($CONFTEST bigendian)" if test "$mingw32" = "no" ; then