From: Brian Jepson Date: Fri, 20 Aug 1999 11:25:17 +0000 (-0500) Subject: Sparc Linux -Duseshrplib fix. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7cd1f58aa894cece69e90e235bde383c789bb541;p=p5sagit%2Fp5-mst-13.2.git Sparc Linux -Duseshrplib fix. To: Nick Ing-Simmons cc: perl5-porters@perl.org Subject: Re: [ID 19990813.002] Can't build Perl 5.005_60 on SPARC/Linux with -Duseshrplib Message-ID: p4raw-id: //depot/cfgperl@4347 --- diff --git a/hints/linux.sh b/hints/linux.sh index c1172ca..e9af509 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -258,6 +258,15 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac +case "`uname -r`" in +sparc-linux) + case "$cccdlflags" in + *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; + *) cccdlflags="$cccdlflags -fPIC" ;; + esac + ;; +esac + # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. cat > UU/usethreads.cbu <<'EOCBU'