aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-10 13:39:26 +0300
committerseyko <seyko2@gmail.com>2015-03-10 13:39:26 +0300
commit87ec08ecc88e498e3f23703a93ab8858697547f0 (patch)
tree756d9430cf358272113eeb99068a7b469ad7cc66 /configure
parent25b2779c3d88b0acdf86e99c0c60836153ec401b (diff)
downloadtinycc-87ec08ecc88e498e3f23703a93ab8858697547f0.tar.gz
tinycc-87ec08ecc88e498e3f23703a93ab8858697547f0.tar.bz2
A native tcc for MSYS (Windows) must be i386-win-tcc.exe and not i386-tcc.exe
i386-tcc.exe is a compiler for i386 Linux. A HOST_OS variable in Makefile is introduced and used to select a native compiler (which one to name as tcc.exe)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index a3f57bf..d33092a 100755
--- a/configure
+++ b/configure
@@ -47,11 +47,12 @@ tcc_elfinterp=""
tcc_lddir=
confvars=
cpu=
+host_os=Linux
# OS specific
targetos=`uname -s`
case $targetos in
- MINGW32*) mingw32=yes;;
+ MINGW32*) mingw32=yes; host_os=Windows; ;;
DragonFly) noldl=yes;;
OpenBSD) noldl=yes;;
FreeBSD) noldl=yes;;
@@ -407,6 +408,7 @@ echo "cross compilers $build_cross"
if test "$build_cross" = "no"; then
echo "Target CPU $cpu"
fi
+echo "Host OS $host_os"
echo "Target OS $targetos"
echo "Big Endian $bigendian"
echo "gprof enabled $gprof"
@@ -435,6 +437,7 @@ CFLAGS=$CFLAGS
LDFLAGS=$LDFLAGS
LIBSUF=$LIBSUF
EXESUF=$EXESUF
+HOST_OS=$host_os
EOF
if test "$mingw32" = "yes"; then
cat >>config.mak <<EOF