summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-05-10 18:21:43 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-05-10 18:21:43 +0000
commite3159d07eae19a2ad4bc7e5f2e54e307a931528b (patch)
tree33a12217df0a6b234239611d411c87f65aadfc30 /hints
parente883c329077d249629bb8954987c1e1a833c0b61 (diff)
downloadperl-e3159d07eae19a2ad4bc7e5f2e54e307a931528b.tar.gz
Circumnavigate Digital UNIX 4.0D miniperl core dump
(due to QAR 56761) (the bug has been fixed in 4.0E or better) p4raw-id: //depot/cfgperl@3384
Diffstat (limited to 'hints')
-rw-r--r--hints/dec_osf.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index 4ab535d005..fd7f479d2a 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -149,10 +149,19 @@ case "`uname -r`" in
*) if $test "X$optimize" = "X$undef"; then
lddlflags="$lddlflags -msym"
else
- lddlflags="$lddlflags $optimize -msym"
+ case "`sizer -v`" in
+ *4.0D*)
+ # QAR 56761: -O4 + .so may produce broken code,
+ # fixed in 4.0E or better.
+ ;;
+ *)
+ lddlflags="$lddlflags $optimize"
+ ;;
+ esac
+ # -msym: If using a sufficiently recent /sbin/loader,
+ # keep the module symbols with the modules.
+ lddlflags="$lddlflags -msym"
fi
- # -msym: If using a sufficiently recent /sbin/loader,
- # keep the module symbols with the modules.
;;
esac
# Yes, the above loses if gcc does not use the system linker.