diff options
author | Krishna Sethuraman <krishna@sgi.com> | 1998-08-23 16:18:38 -0700 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-09-24 08:37:00 +0000 |
commit | 9ea370a75330a8ebfe27730428b6c5793636dc59 (patch) | |
tree | 49fd392e757a02f585ad15477c3d9fbcbfe52203 /hints/irix_6.sh | |
parent | 8d814b804e379974e16ec397b78d6c0812467daf (diff) | |
download | perl-9ea370a75330a8ebfe27730428b6c5793636dc59.tar.gz |
new irix_6.sh hints file
Message-Id: <199808240618.XAA05329@shamu.engr.sgi.com>
p4raw-id: //depot/perl@1872
Diffstat (limited to 'hints/irix_6.sh')
-rw-r--r-- | hints/irix_6.sh | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 382643b589..a91be9807e 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -78,6 +78,26 @@ pp_ctl_cflags='optimize=-O' ;; esac +# this is to accommodate the 'modules' capability of the +# 7.2 MIPSPro compilers, which allows for the compilers to be installed +# in a nondefault location. Almost everything works as expected, but +# /usr/include isn't caught properly. Hence see the /usr/include/pthread.h +# change below to include TOOLROOT (a modules environment variable), +# and the following code. Additional +# code to accommodate the 'modules' environment should probably be added +# here if possible, or be inserted as a ${TOOLROOT} reference before +# absolute paths (again, see the pthread.h change below). +# -- krishna@sgi.com, 8/23/98 + +if [ "X${TOOLROOT}" != "X" ]; then +# we cant set cppflags because it gets overwritten +# we dont actually need $TOOLROOT/usr/include on the cc line cuz the +# modules functionality already includes it but +# XXX - how do I change cppflags in the hints file? + ccflags="$ccflags -I${TOOLROOT}/usr/include" + usrinc="${TOOLROOT}/usr/include" +fi + ld=$cc # perl's malloc can return improperly aligned buffer # usemymalloc='undef' @@ -140,7 +160,7 @@ shift libswanted="$*" if [ "X$usethreads" = "X$define" -o "X$usethreads" = "Xy" ]; then - if test ! -f /usr/include/pthread.h -o ! -f /usr/lib/libpthread.so; then + if test ! -f ${TOOLROOT}/usr/include/pthread.h -o ! -f /usr/lib/libpthread.so; then uname_r=`uname -r` case "`uname -r`" in 5*|6.0|6.1) |