Be sure to use -fPIC not -fpic on Linux/SPARC
Andy Dougherty [Wed, 5 Nov 2003 17:19:03 +0000 (12:19 -0500)]
Message-ID: <Pine.SOL.4.53.0311051715140.24878@maxwell.phys.lafayette.edu>

p4raw-id: //depot/perl@21673

hints/linux.sh

index bc7d49a..437e5c9 100644 (file)
@@ -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" ;;