From 9ea370a75330a8ebfe27730428b6c5793636dc59 Mon Sep 17 00:00:00 2001 From: Krishna Sethuraman Date: Sun, 23 Aug 1998 16:18:38 -0700 Subject: [PATCH] new irix_6.sh hints file Message-Id: <199808240618.XAA05329@shamu.engr.sgi.com> p4raw-id: //depot/perl@1872 --- hints/irix_6.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 382643b..a91be98 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) -- 2.7.4