summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-26 02:34:44 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-26 02:34:44 +0000
commitaeb590f35523b5895196439f91d5e7af91e5fe21 (patch)
tree30a69193be155165a679bac465ccbe790bef44cb /hints
parentef61f41fdf10ad2a6c79b030f50b2b35293c0473 (diff)
downloadperl-aeb590f35523b5895196439f91d5e7af91e5fe21.tar.gz
If ccflags was empty the _previous_ $* containing all the
environment variables and Configure variables was used, which lead, among other bad things, into $ccflags being your uname -a output, which lead into test compile with cc failing, which lead into gcc being selected, which didn't work that well since gcc (ancient 2.8.1 in that particular box) wasn't too happy with large files, et cetera. p4raw-id: //depot/perl@9850
Diffstat (limited to 'hints')
-rw-r--r--hints/hpux.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 7eb996c149..8623715654 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -37,8 +37,12 @@ echo "Archname is $archname"
### HP-UX OS specific behaviour
-set `echo " $ccflags " | sed -e 's/ -A[ea] / /' -e 's/ -D_HPUX_SOURCE / /'`
-cc_cppflags="$* -D_HPUX_SOURCE"
+case "$ccflags" in
+'') cc_cppflags='' ;;
+*) set `echo " $ccflags " | sed -e 's/ -A[ea] / /g' -e 's/ -D_HPUX_SOURCE / /'`
+ cc_cppflags="$* -D_HPUX_SOURCE"
+ ;;
+esac
ccflags="-Ae $cc_cppflags"
cppflags="-Aa -D__STDC_EXT__ $cc_cppflags"