summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-07-23 13:18:11 +0300
committerSteve Peters <steve@fisharerojo.org>2006-07-23 13:20:07 +0000
commitf1e4547908e5788127a3dd5ecad2a2ebcb51d332 (patch)
tree8aac7544ff95d1d6c0cbf395c0a846c4ec615e66 /hints
parentaed58286850fb82fabacfa04fc2b91770f8f066f (diff)
downloadperl-f1e4547908e5788127a3dd5ecad2a2ebcb51d332.tar.gz
Tru64: if cc given both -O and -g, -g must be -g3
Message-Id: <200607230718.k6N7IB4u009170@kosh.hut.fi> p4raw-id: //depot/perl@28609
Diffstat (limited to 'hints')
-rw-r--r--hints/dec_osf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index 2a2bf616b9..a4155bdd19 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -179,6 +179,16 @@ case "$optimize" in
;;
esac
+case "$isgcc" in
+gcc) ;;
+*) case "$optimize" in
+ *-O*) # With both -O and -g, the -g must be -g3.
+ optimize="`echo $optimize | sed 's/-g[1-4]*/-g3/'`"
+ ;;
+ esac
+ ;;
+esac
+
## Optimization limits
case "$isgcc" in
gcc) # gcc 3.2.1 wants a lot of memory for -O3'ing toke.c