summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2002-02-14 19:07:40 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-15 15:01:54 +0000
commitc4a5d5519ab0a22ec5d859e5c875e58c3f0f1454 (patch)
treed79eeac4b82e71e6440b0308ebbbd4bce4e470cf /hints/solaris_2.sh
parent6b769f8f43d32c1b84acaab2ba3f098f3fc70c18 (diff)
downloadperl-c4a5d5519ab0a22ec5d859e5c875e58c3f0f1454.tar.gz
; was Re: [PATCH Configure] Interaction of cc.cbu and checkcc
Message-Id: <200202141907.TAA21516@tempest.npl.co.uk> (the hints part only) p4raw-id: //depot/perl@14709
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index f89842a646..d6571668d7 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -252,15 +252,21 @@ END
# apparently don't reveal that unless you pass in -V.
# (This may all depend on local configurations too.)
+ # Recompute verbose with -Wl,-v to find GNU ld if present
+ verbose=`${cc:-cc} -v -Wl,-v -o try try.c 2>&1 | grep ld 2>&1`
+
myld=`echo $verbose| grep ld | awk '/\/ld/ {print $1}'`
# This assumes that gcc's output will not change, and that
# /full/path/to/ld will be the first word of the output.
- # Thus myld is something like opt/gnu/sparc-sun-solaris2.5/bin/ld
+ # Thus myld is something like /opt/gnu/sparc-sun-solaris2.5/bin/ld
- if $myld -V 2>&1 | grep "ld: Software Generation Utilities" >/dev/null 2>&1; then
+ # Allow that $myld may be '', due to changes in gcc's output
+ if ${myld:-ld} -V 2>&1 |
+ grep "ld: Software Generation Utilities" >/dev/null 2>&1; then
# Ok, /usr/ccs/bin/ld eventually does get called.
:
else
+ echo "Found GNU ld='$myld'" >&4
cat <<END >&2
NOTE: You are using GNU ld(1). GNU ld(1) might not build Perl. If you