diff options
author | Ben Huntsman <BHuntsman@mail2.cu-portland.edu> | 2020-05-04 19:52:02 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-07 20:36:03 -0400 |
commit | 4982d4ebc3bd4924d73f2f2ad584309e9ec97435 (patch) | |
tree | 64391bc34075ce7fe5d9a2f6ad50c71f27e428c3 /bin/9c | |
parent | c3c9c7b6ae7c6a8bf9c6d040d3af89e020fd92de (diff) | |
download | plan9port-4982d4ebc3bd4924d73f2f2ad584309e9ec97435.tar.gz plan9port-4982d4ebc3bd4924d73f2f2ad584309e9ec97435.tar.bz2 plan9port-4982d4ebc3bd4924d73f2f2ad584309e9ec97435.zip |
all: update build scripts to fix AIX XL/C compatibility
Diffstat (limited to 'bin/9c')
-rwxr-xr-x | bin/9c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -82,6 +82,23 @@ useclang() cflags="$ngflags -g" } +usexlc() +{ + cc=${CC9:-xlc_r} + ngflags=" \ + -c \ + -O0 \ + -qmaxmem=-1 \ + -qsuppress=1506-236 \ + -qsuppress=1506-358 \ + -qsuppress=1500-010 \ + -qsuppress=1506-224 \ + -qsuppress=1506-1300 \ + -qsuppress=1506-342 \ + " + cflags="$ngflags -g -qfullpath" +} + tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}" case "$tag" in *DragonFly*gcc*|*BSD*gcc*) usegcc ;; @@ -120,7 +137,7 @@ case "$tag" in cflags="$ngflags -g" cflags="$cflags -D__sun__ -D__${s}__" ;; -*AIX*) usegcc +*AIX*) usexlc cflags="$ngflags -g -D__AIX__" ;; *) |