summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2001-01-03 10:36:06 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-04 19:02:22 +0000
commit604c6cffb2ad24b362713b025d661f1de3f1e109 (patch)
treec07c6586cb0e735e1ee525d82a1ce3b93f806a9c /hints
parent73ad924bb74843cec9f21bc8206c71f96a6652a4 (diff)
downloadperl-604c6cffb2ad24b362713b025d661f1de3f1e109.tar.gz
Re: New attempt on hints/solaris_2.sh
Message-ID: <Pine.SOL.4.10.10101031518320.28840-100000@maxwell.phys.lafayette.edu> Beware of GNU ld. p4raw-id: //depot/perl@8316
Diffstat (limited to 'hints')
-rw-r--r--hints/solaris_2.sh26
1 files changed, 5 insertions, 21 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index a3de6a2d00..0bf5bab3af 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -210,12 +210,6 @@ if echo "$verbose" | grep '^Reading specs from' >/dev/null 2>&1; then
# Using gcc.
#
- tmp=`echo "$verbose" | grep '^Reading' |
- awk '{print $NF}' | sed 's/specs$/include/'`
-
- # Determine if the fixed-includes look like they'll work.
- # Doesn't work anymore for gcc-2.7.2.
-
# See if as(1) is GNU as(1). GNU as(1) might not work for this job.
if echo "$verbose" | grep ' /usr/ccs/bin/as ' >/dev/null 2>&1; then
:
@@ -313,22 +307,12 @@ END
# See if ld(1) is GNU ld(1). GNU ld(1) might not work for this job.
# ld --version doesn't properly report itself as a GNU tool,
# as of ld version 2.6, so we need to be more strict. TWP 9/5/96
- gnu_ld=false
- case `ld --version < /dev/null 2>&1` in
- *GNU*|ld\ version\ 2*)
- gnu_ld=true ;;
- *) ;;
- esac
- if $gnu_ld ; then :
+ # Sun's ld always emits the "Software Generation Utilities" string.
+ if ld -V 2>&1 | grep "ld: Software Generation Utilities" >/dev/null 2>&1; then
+ # Ok, ld is /usr/ccs/bin/ld.
+ :
else
- # Try to guess from path
- case `type ld | awk '{print $NF}'` in
- *gnu*|*GNU*|*FSF*)
- gnu_ld=true ;;
- esac
- fi
- if $gnu_ld ; then
- cat <<END >&2
+ cat <<END >&2
NOTE: You are apparently using GNU ld(1). GNU ld(1) might not build Perl.
You should arrange to use /usr/ccs/bin/ld, perhaps by adding /usr/ccs/bin