This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Be sure to use -fPIC not -fpic on Linux/SPARC
[perl5.git] / 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" ;;