From: Andy Dougherty Date: Wed, 5 Nov 2003 17:19:03 +0000 (-0500) Subject: Be sure to use -fPIC not -fpic on Linux/SPARC X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6527d0ef0c13ad49720ee08f79ebfa3856db3ed;p=p5sagit%2Fp5-mst-13.2.git Be sure to use -fPIC not -fpic on Linux/SPARC Message-ID: p4raw-id: //depot/perl@21673 --- diff --git a/hints/linux.sh b/hints/linux.sh index bc7d49a..437e5c9 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -247,8 +247,8 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac -case "`uname -r`" in -sparc-linux) +case "`uname -m`" in +sparc*) case "$cccdlflags" in *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; *) cccdlflags="$cccdlflags -fPIC" ;;