From: Perl 5 Porters Date: Tue, 10 Sep 1996 02:16:49 +0000 (+0000) Subject: perl 5.003_05: hints/solaris_2.sh X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=91d1e749126a486257fe54e05f275672ced818df;p=p5sagit%2Fp5-mst-13.2.git 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 . --- diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index ced345b..d563e53 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 <