clarify; default to xlc(1) as $CC on z/OS

This commit is contained in:
tg 2017-05-01 19:22:53 +00:00
parent 7c433ba94b
commit 1b3ef94b7d
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.719 2017/04/29 14:36:12 tg Exp $'
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.720 2017/05/01 19:22:53 tg Exp $'
#-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012, 2013, 2014, 2015, 2016, 2017
@ -928,6 +928,7 @@ OS/390)
add_cppflags -DMKSH_ASSUME_UTF8=0
HAVE_ISSET_MKSH_ASSUME_UTF8=1
HAVE_ISOFF_MKSH_ASSUME_UTF8=1
: "${CC=xlc}"
: "${SIZE=: size}"
add_cppflags -DMKSH_FOR_Z_OS
add_cppflags -D_ALL_SOURCE
@ -1088,7 +1089,7 @@ $e $bi$me: Scanning for functions... please ignore any errors.$ao
# - LLVM+clang defines __GNUC__ too
# - nwcc defines __GNUC__ too
CPP="$CC -E"
$e ... which compiler seems to be used
$e ... which compiler type seems to be used
cat >conftest.c <<'EOF'
const char *
#if defined(__ICC) || defined(__INTEL_COMPILER)
@ -1338,7 +1339,7 @@ unknown)
# huh?
;;
esac
$e "$bi==> which compiler seems to be used...$ao $ui$ct$etd$ao"
$e "$bi==> which compiler type seems to be used...$ao $ui$ct$etd$ao"
rmf conftest.c conftest.o conftest a.out* a.exe* conftest.exe* vv.out
#