summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-02-21 17:26:19 +0200
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-25 15:23:24 +0000
commit419eaf7b01c3f231c2f9dead147a7012d0e9df5f (patch)
treedf3964b5b8dfe4ed2db5437936e3660f7db35387 /hints
parentee02776e1e319bf3f9a6f0b42762f94334cfa372 (diff)
downloadperl-419eaf7b01c3f231c2f9dead147a7012d0e9df5f.tar.gz
HP-UX hints and AIX global.sym changes (with Makefile.SH rule)
Subject: [PATCH] 5.004_60: AIX: global.sym and Makefile.SH Date: Sat, 21 Feb 1998 15:26:19 +0200 (EET) Subject: Re: your HP-UX perl patch Date: Mon, 23 Feb 1998 23:14:37 +0200 (EET) p4raw-id: //depot/perl@579
Diffstat (limited to 'hints')
-rw-r--r--hints/hpux.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index c2500d0c37..cbf80cc669 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -60,10 +60,6 @@
# reading from a NULL pointer causes a SEGV.
ccflags="$ccflags -D_HPUX_SOURCE"
-# If you plan to use gcc, then you should uncomment the following line
-# so you get the HP math library and not the GCC math library.
-# ccflags="$ccflags -L/lib/pa1.1"
-
# Check if you're using the bundled C compiler. This compiler doesn't support
# ANSI C (the -Aa flag) nor can it produce shared libraries. Thus we have
# to turn off dynamic loading.
@@ -92,6 +88,12 @@ EOM
;;
esac
+# Even if you use gcc, prefer the HP math library over the GNU one.
+
+case "`$cc -v 2>&1`" in
+"*gcc*" ) test -d /lib/pa1.1 && ccflags="$ccflags -L/lib/pa1.1" ;;
+esac
+
# Determine the architecture type of this system.
# Keep leading tab below -- Configure Black Magic -- RAM, 03/02/97
xxOsRevMajor=`uname -r | sed -e 's/^[^0-9]*//' | cut -d. -f1`;