clarify; default to xlc(1) as $CC on z/OS
This commit is contained in:
7
Build.sh
7
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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,
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
# 2011, 2012, 2013, 2014, 2015, 2016, 2017
|
# 2011, 2012, 2013, 2014, 2015, 2016, 2017
|
||||||
@ -928,6 +928,7 @@ OS/390)
|
|||||||
add_cppflags -DMKSH_ASSUME_UTF8=0
|
add_cppflags -DMKSH_ASSUME_UTF8=0
|
||||||
HAVE_ISSET_MKSH_ASSUME_UTF8=1
|
HAVE_ISSET_MKSH_ASSUME_UTF8=1
|
||||||
HAVE_ISOFF_MKSH_ASSUME_UTF8=1
|
HAVE_ISOFF_MKSH_ASSUME_UTF8=1
|
||||||
|
: "${CC=xlc}"
|
||||||
: "${SIZE=: size}"
|
: "${SIZE=: size}"
|
||||||
add_cppflags -DMKSH_FOR_Z_OS
|
add_cppflags -DMKSH_FOR_Z_OS
|
||||||
add_cppflags -D_ALL_SOURCE
|
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
|
# - LLVM+clang defines __GNUC__ too
|
||||||
# - nwcc defines __GNUC__ too
|
# - nwcc defines __GNUC__ too
|
||||||
CPP="$CC -E"
|
CPP="$CC -E"
|
||||||
$e ... which compiler seems to be used
|
$e ... which compiler type seems to be used
|
||||||
cat >conftest.c <<'EOF'
|
cat >conftest.c <<'EOF'
|
||||||
const char *
|
const char *
|
||||||
#if defined(__ICC) || defined(__INTEL_COMPILER)
|
#if defined(__ICC) || defined(__INTEL_COMPILER)
|
||||||
@ -1338,7 +1339,7 @@ unknown)
|
|||||||
# huh?
|
# huh?
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
rmf conftest.c conftest.o conftest a.out* a.exe* conftest.exe* vv.out
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user