summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-05-14 12:29:21 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-14 12:29:21 +0000
commita6bab54cf3c440f9d3549dc8cc387d1ca54ee801 (patch)
tree51698ccad3cb2583ae38373f604403e82d239089 /hints/hpux.sh
parent89f4ed55a43fb3d138590bf493af44a17e75382f (diff)
downloadperl-a6bab54cf3c440f9d3549dc8cc387d1ca54ee801.tar.gz
Yet another HP-UX hints tweak from Merijn.
p4raw-id: //depot/perl@10092
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh16
1 files changed, 5 insertions, 11 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 59dcdbf26a..5b0dd7ea54 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -97,7 +97,6 @@ case `$cc -v 2>&1`"" in
# When HP-UX runs a script with "#!", it sets argv[0] to the script name.
toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
-
### 64 BITNESS
case "$use64bitall" in
@@ -203,7 +202,7 @@ those parts. If you are a sysadmin, and you *do* want full
optimization, raise the 'maxdsiz' kernel configuration parameter
to at least 0x08000000 (128 Mb) and rebuild your kernel.
EOM
- exit
+regexec_cflags=''
fi
case "$ccisgcc" in
@@ -232,12 +231,10 @@ case "$ccisgcc" in
;;
esac
if [ $maxdsiz -le 64 ]; then
- # 64 Mb is probably not enough to optimize toke.c
- # and regexp.c with -O2
case "$optimize" in
*O2*) opt=`echo "$optimize" | sed -e 's/O2/O1/'`
- toke_cflags="$ccflags $opt"
- regexec_cflags="$ccflags $opt"
+ toke_cflags="$toke_cflags;optimize=\"$opt\""
+ regexec_cflags="optimize=\"$opt\""
;;
esac
fi
@@ -249,13 +246,11 @@ case "$ccisgcc" in
*O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;;
esac
if [ $maxdsiz -le 64 ]; then
- # 64 Mb is probably not enough to optimize toke.c
- # and regexp.c with -O (+O2)
case "$optimize" in
*-O*|\
*O2*) opt=`echo "$optimize" | sed -e 's/-O/+O2/' -e 's/O2/O1/' -e 's/ *+Onolimit//'`
- toke_cflags="$ccflags $opt"
- regexec_cflags="$ccflags $opt"
+ toke_cflags="$toke_cflags;optimize=\"$opt\""
+ regexec_cflags="optimize=\"$opt\""
;;
esac
fi
@@ -265,7 +260,6 @@ case "$ccisgcc" in
;;
esac
-
## LARGEFILES
#case "$uselargefiles-$ccisgcc" in