From: Scott Henry Date: Sat, 12 Apr 1997 01:05:03 +0000 (-0700) Subject: update to 5.003_97b/hint/irix_6_2.sh X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e5f255bc79a4d332832eda907f7e26f656b7ec2;p=p5sagit%2Fp5-mst-13.2.git update to 5.003_97b/hint/irix_6_2.sh It is possible with the 7.1 compilers for IRIX-6.2 and later to change the default compiler options for the system. You need to explicitely select the compiler options in the hints file to avoid mix-n-match ABI problems. I also added some additional commentary... Patch against 5.003_97b follows: p5p-msgid: yd8hghdjbk0.fsf@hoshi.engr.sgi.com --- diff --git a/hints/irix_6_2.sh b/hints/irix_6_2.sh index 44ea859..4f49a8e 100644 --- a/hints/irix_6_2.sh +++ b/hints/irix_6_2.sh @@ -6,14 +6,16 @@ # Andy Dougherty # with help from Dean Roehrich . # cc -n32 update info from Krishna Sethuraman, krishna@sgi.com. +# additional update from Scott Henry, scotth@sgi.com # Use sh Configure -Dcc='cc -n32' to try compiling with -n32. case "$cc" in *"cc -n32"*) ld=ld - ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:fprop_limit=1500" - optimize='none' # Miniperl core dumps with -O + ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0" +# optimize='none' # for pre-7.1 compilers. Miniperl core dumps with -O + optimize='-O3' # This works with the 7.1 and later compilers ldflags=' -L/usr/local/lib -L/usr/lib32 -L/lib32' cccdlflags=' ' lddlflags="-n32 -shared" @@ -23,7 +25,9 @@ case "$cc" in nm_so_opt='-p' ;; *) - ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -Olimit 3000" + # this is needed to force the old-32 paths + # since the system default can be changed. + ccflags="$ccflags -32 -D_BSD_TYPES -D_BSD_TIME -Olimit 3000" ;; esac @@ -48,6 +52,12 @@ libswanted="$*" # tests would pass some times and fail at other times. # The safest thing to do seems to be to eliminate them. # +# Actually, the only libs that you want are '-lm'. Everything else +# you need is in libc. You do also need '-lbsd' if you choose not +# to use the -D_BSD_* defines. Note that as of 6.2 the only +# difference between '-lmalloc' and '-lc' malloc is the debugging +# and control calls. -- scotth@sgi.com + set `echo X "$libswanted "|sed -e 's/ sun / /' -e 's/ crypt / /' -e 's/ bsd / /' -e 's/ PW / /'` shift libswanted="$*"