summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-09-16 16:58:44 -0400
committerSteve Hay <steve.m.hay@googlemail.com>2014-12-27 12:35:51 +0000
commit490a64685c84b4599808b883d321d9b7e9df5037 (patch)
tree58c1d6ef21a1034a6ed3a625e85cd0babb50e738 /hints
parentf1ba9b3d0ee0fc239fb4de64987733208ddd1ef4 (diff)
downloadperl-490a64685c84b4599808b883d321d9b7e9df5037.tar.gz
IRIX 6.5 (cc 7.4) needs -c99 to compile without whining.
Without -c99 including C99 header files like <stdint.h> is an error. For gcc (used "freeware" 3.3), there just doesn't seem to be a way, so claim there's no <stdint.h>. (cherry picked from commit 0b6ebfadd8d2cfccc07203e94d583721305fd779) (cherry picked from commit 975d2fd592d346222f39bd6e412e239d95547fd5)
Diffstat (limited to 'hints')
-rw-r--r--hints/irix_6.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/hints/irix_6.sh b/hints/irix_6.sh
index e36d643019..2b9851f408 100644
--- a/hints/irix_6.sh
+++ b/hints/irix_6.sh
@@ -102,7 +102,12 @@ $cat > UU/cc.cbu <<'EOCCBU'
# has prompted the user for the C compiler to use.
case "$cc" in
-*gcc*) ;;
+*gcc*)
+ # With cc we can use -c99, but with gcc we just can't use C99 headers.
+ # (There is a hidden define __c99 that cc uses, but trying to use that
+ # with gcc leads into magnificent explosions.)
+ i_stdint='undef'
+ ;;
*) ccversion=`cc -version 2>&1` ;;
esac
@@ -237,6 +242,7 @@ case "$cc" in
# Warnings to turn off because the source code hasn't
# been cleaned up enough yet to satisfy the IRIX cc.
+ # 1047: macro redefinitions (in IRIX' own system headers!)
# 1184: "=" is used where where "==" may have been intended.
# 1552: The variable "foobar" is set but never used.
woff=1184,1552
@@ -284,6 +290,9 @@ case "$cc" in
'-O') optimize='-O3 -OPT:Olimit=0:space=ON' ;;
*) ;;
esac
+ # Perl source has just grown too chummy with c99
+ # (headerwise, not code-wise: we use <stdint.h> and such)
+ ccflags="$ccflags -c99"
;;
*6.2*) # Ragnarok 6.2
ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -woff $woff"