mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +00:00
use $CC rather than "$CC" in configure script
this is necessary to allow $CC with arguments in it
This commit is contained in:
parent
25011215be
commit
01e5a1b6cd
8
configure
vendored
8
configure
vendored
@ -58,7 +58,7 @@ else eval "fnmatch '*/' \"\${$1}\"" && eval "$1=\${$1%/}" ; fi
|
|||||||
tryflag () {
|
tryflag () {
|
||||||
printf "checking whether compiler accepts %s... " "$2"
|
printf "checking whether compiler accepts %s... " "$2"
|
||||||
echo "typedef int x;" > "$tmpc"
|
echo "typedef int x;" > "$tmpc"
|
||||||
if "$CC" "$2" -c -o /dev/null "$tmpc" 2>/dev/null ; then
|
if $CC "$2" -c -o /dev/null "$tmpc" 2>/dev/null ; then
|
||||||
printf "yes\n"
|
printf "yes\n"
|
||||||
eval "$1=\"\${$1} \$2\""
|
eval "$1=\"\${$1} \$2\""
|
||||||
eval "$1=\${$1# }"
|
eval "$1=\${$1# }"
|
||||||
@ -72,7 +72,7 @@ fi
|
|||||||
tryldflag () {
|
tryldflag () {
|
||||||
printf "checking whether linker accepts %s... " "$2"
|
printf "checking whether linker accepts %s... " "$2"
|
||||||
echo "typedef int x;" > "$tmpc"
|
echo "typedef int x;" > "$tmpc"
|
||||||
if "$CC" -nostdlib -shared "$2" -o /dev/null "$tmpc" 2>/dev/null ; then
|
if $CC -nostdlib -shared "$2" -o /dev/null "$tmpc" 2>/dev/null ; then
|
||||||
printf "yes\n"
|
printf "yes\n"
|
||||||
eval "$1=\"\${$1} \$2\""
|
eval "$1=\"\${$1} \$2\""
|
||||||
eval "$1=\${$1# }"
|
eval "$1=\${$1# }"
|
||||||
@ -170,7 +170,7 @@ test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; }
|
|||||||
#
|
#
|
||||||
if test -z "$wrapper" ; then
|
if test -z "$wrapper" ; then
|
||||||
printf "checking whether compiler is gcc... "
|
printf "checking whether compiler is gcc... "
|
||||||
if fnmatch '*gcc\ version*' "$("$CC" -v 2>&1)" ; then
|
if fnmatch '*gcc\ version*' "$($CC -v 2>&1)" ; then
|
||||||
echo yes
|
echo yes
|
||||||
printf "checking whether to build musl-gcc wrapper... "
|
printf "checking whether to build musl-gcc wrapper... "
|
||||||
wrapper=yes
|
wrapper=yes
|
||||||
@ -191,7 +191,7 @@ fi
|
|||||||
# Find the target architecture
|
# Find the target architecture
|
||||||
#
|
#
|
||||||
printf "checking target system type... "
|
printf "checking target system type... "
|
||||||
test -n "$target" || target=$("$CC" -dumpmachine 2>/dev/null) || target=unknown
|
test -n "$target" || target=$($CC -dumpmachine 2>/dev/null) || target=unknown
|
||||||
printf "%s\n" "$target"
|
printf "%s\n" "$target"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user