X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Firix_6.sh;h=ad6e7788ece8fcd6bbf45ece683719af59a102d8;hb=6137113dfd943e6f896f8b9c1a4df2b7d4e355ae;hp=ef7c5a6630695636da70e761cff42643eef42908;hpb=20f6aaab8d64a33be1150bb7a380a1b5d03267cb;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/irix_6.sh b/hints/irix_6.sh index ef7c5a6..ad6e778 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -3,7 +3,7 @@ # original from Krishna Sethuraman, krishna@sgi.com # # Modified Mon Jul 22 14:52:25 EDT 1996 -# Andy Dougherty +# 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 @@ -26,6 +26,8 @@ # 64-bitty by Jarkko Hietaniemi on 9/1998 +# Martin Pool added -shared for gcc on 2004-01-27 + # Use sh Configure -Dcc='cc -n32' to try compiling with -n32. # or -Dcc='cc -n32 -mips3' (or -mips4) to force (non)portability # Don't bother with -n32 unless you have the 7.1 or later compilers. @@ -170,9 +172,12 @@ esac' test -z "$plibpth" && plibpth='/usr/lib64 /lib64 /usr/ccs/lib' ;; *gcc*) - ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME -D_POSIX_C_SOURCE" + ccflags="$ccflags -D_BSD_TYPES -D_BSD_TIME" test -z "$optimize" && optimize="-O3" usenm='undef' + # It seems gcc can build Irix shlibs, but of course it needs + # -shared. Otherwise you get link errors looking for main(). + lddlflags="$lddlflags -shared" case "`uname -s`" in # Without the -mabi=64 gcc in 64-bit IRIX has problems passing # and returning small structures. This affects inet_*() and semctl(). @@ -326,7 +331,8 @@ EOCCBU # We don't want these libraries. # Socket networking is in libc, these are not installed by default, # and just slow perl down. (scotth@sgi.com) -set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'` +# librt contains nothing we need (some places need it for Time::HiRes) --jhi +set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /' -e 's/ rt / /'` shift libswanted="$*"