at master 812 B view raw
1$NetBSD: patch-hints_solaris__2.sh,v 1.2 2015/10/27 09:10:44 jperkin Exp $ 2 3Redo PR pkg/44999. 4 5--- perl-5.20.2/hints/solaris_2.sh.orig 2015-05-13 20:19:29.000000000 +0000 6+++ perl-5.20.2/hints/solaris_2.sh 7@@ -585,7 +585,7 @@ EOM 8 fi 9 fi 10 case "${cc:-cc} -v 2>/dev/null" in 11- *gcc*) 12+ *gcc*|clang*) 13 echo 'int main() { return 0; }' > try.c 14 case "`${cc:-cc} $ccflags -mcpu=v9 -m64 -S try.c 2>&1 | grep 'm64 is not supported by this configuration'`" in 15 *"m64 is not supported"*) 16@@ -622,7 +622,7 @@ EOM 17 # use that with Solaris 11 and later, but keep 18 # the old behavior for older Solaris versions. 19 case "$osvers" in 20- 2.?|2.10) lddlflags="$lddlflags -G -m64" ;; 21+ 2.?|2.10) lddlflags="$lddlflags -shared -m64" ;; 22 *) lddlflags="$lddlflags -shared -m64" ;; 23 esac 24 ;;