diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-09-10 02:16:49 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-09-10 02:16:49 +0000 |
commit | 91d1e749126a486257fe54e05f275672ced818df (patch) | |
tree | 201cd9e0b25ffc1db845092a4e07dd9a96011d39 | |
parent | 8a67a0a36385431c513675547522fff1224e12ff (diff) | |
download | perl-91d1e749126a486257fe54e05f275672ced818df.tar.gz |
perl 5.003_05: hints/solaris_2.sh
Catch GNU ld even though it doesn't identify itself as a GNU tool.
Thanks to Tim Pierce <twpierce@midway.uchicago.edu>.
-rw-r--r-- | hints/solaris_2.sh | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index ced345b6c4..d563e53d7b 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -182,17 +182,32 @@ END esac # See if ld(1) is GNU ld(1). GNU ld(1) won't 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*) + *GNU*|ld\ version\ 2*) + gnu_ld=true ;; + *) ;; + esac + if $gnu_ld ; then : + else + case `which ld` in + no\ ld\ in*|[Cc]ommand\ not\ found*) + ;; + /*gnu*/ld|/*GNU*/ld) + gnu_ld=true ;; + esac + fi + if $gnu_ld ; then cat <<END NOTE: You are using GNU ld(1). GNU ld(1) will not build Perl. You must arrange to use /usr/ccs/bin, perhaps by adding it to the -beginning of your PATH +beginning of your PATH. END - ;; - esac + fi ;; #not using gcc esac |