From: Martin Pool Date: Wed, 28 Jan 2004 10:56:25 +0000 (+1100) Subject: patch for IRIX/gcc link issues X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c549067ebd4303bd2e74113fbc53ed229b18bd2;p=p5sagit%2Fp5-mst-13.2.git patch for IRIX/gcc link issues Message-ID: <20040127235624.GA32612@hp.com> p4raw-id: //depot/perl@22260 --- diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 51a4d75..ad6e778 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -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. @@ -173,6 +175,9 @@ esac' 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().