summaryrefslogtreecommitdiff
path: root/hints/irix_6.sh
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2004-01-28 21:56:25 +1100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-02-01 20:47:35 +0000
commit2c549067ebd4303bd2e74113fbc53ed229b18bd2 (patch)
tree566cb69009c3d4d0db8cb7bfa2561d98dfad47b2 /hints/irix_6.sh
parentd0b4fbd9e2c9ee9a42f5c0de27ae9f61e9e33074 (diff)
downloadperl-2c549067ebd4303bd2e74113fbc53ed229b18bd2.tar.gz
patch for IRIX/gcc link issues
Message-ID: <20040127235624.GA32612@hp.com> p4raw-id: //depot/perl@22260
Diffstat (limited to 'hints/irix_6.sh')
-rw-r--r--hints/irix_6.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/hints/irix_6.sh b/hints/irix_6.sh
index 51a4d75bc1..ad6e7788ec 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().