Sparc Linux -Duseshrplib fix.
Brian Jepson [Fri, 20 Aug 1999 11:25:17 +0000 (06:25 -0500)]
To: Nick Ing-Simmons <nick@ing-simmons.net>
cc: perl5-porters@perl.org
Subject: Re: [ID 19990813.002] Can't build Perl 5.005_60 on SPARC/Linux with -Duseshrplib
Message-ID: <Pine.LNX.4.10.9908201123570.5116-100000@cx384756-a.sking1.ri.home.com>

p4raw-id: //depot/cfgperl@4347

hints/linux.sh

index c1172ca..e9af509 100644 (file)
@@ -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'