summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-07-19 16:02:41 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-07-19 16:02:41 +0000
commitfd4fcc7a6cc0f242a6c1b08248fde214652015b5 (patch)
treee7de123dbc4f223a8c9d2ed130043b44c542be24 /configure
parenta5d8403d70acbe7f0d707660fd02326799905530 (diff)
downloadskalibs-fd4fcc7a6cc0f242a6c1b08248fde214652015b5.tar.xz
Simplify cross-build support some more
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure b/configure
index d4bcbb4..2248242 100755
--- a/configure
+++ b/configure
@@ -363,10 +363,9 @@ trycc ${CC}
if test -n "$cross" && test -n "$CC_AUTO" ; then
b=`basename "$CC"`
if test "${b}" = "${b##$cross}" ; then
- echo "Warning: compiler $CC is declared as a cross-compiler for target $target but does not start with prefix $cross" 1>&2
+ echo "$0: warning: compiler $CC is declared as a cross-compiler for target $target but does not start with prefix $cross" 1>&2
fi
fi
-trycc ${cross}${CC}
trycc ${cross}gcc
trycc ${cross}clang
trycc ${cross}cc
@@ -434,6 +433,9 @@ if test -n "$sysdeps" ; then
timer_lib=$(cat $sysdeps/timer.lib)
util_lib=$(cat $sysdeps/util.lib)
else
+ if test -n "$cross" ; then
+ echo "$0: warning: possible cross-build attempt with a native compiler" 1>&2
+ fi
sysdeps=sysdeps.cfg
mkdir -p $sysdeps
echo "$target" > $sysdeps/target
@@ -594,7 +596,7 @@ SYSCLOCK_LIB := ${sysclock_lib}
TAINNOW_LIB := ${tainnow_lib}
TIMER_LIB := ${timer_lib}
UTIL_LIB := ${util_lib}
-CC := ${CC_AUTO##${cross}}
+CC := ${CC_AUTO}
CPPFLAGS_AUTO := $CPPFLAGS_AUTO
CPPFLAGS := $CPPFLAGS $CPPFLAGS_POST
CFLAGS_AUTO := $CFLAGS_AUTO