Daniel M. Quinlan [Sun, 17 Feb 2008 14:20:58 +0000 (06:20 -0800)]
From: "Daniel M. Quinlan" (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-24181-
1203286856-952.50946-75-0@perl.org>
p4raw-id: //depot/perl@33330
*** ext/threads/shared/t/wait (threaded builds only)
EOM
+ case `uname -p` in
+ powerpc) arch=ppc64 ;;
+ i386) arch=x86_64 ;;
+ *) cat <<EOM >&4
+
+*** Don't recognize processor, can't specify 64 bit compilation.
+
+EOM
+ ;;
+ esac
for var in ccflags cppflags ld ldflags
do
- eval $var="\$${var}\ -arch\ ppc64"
+ eval $var="\$${var}\ -arch\ $arch"
done
[ "$d_msgctl" ] || d_msgctl='undef'