summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorDaniel M. Quinlan <unknown>2008-02-17 06:20:58 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-18 13:29:01 +0000
commit3fe25e0f6cb886de8a6ea0821c0c60588e818e66 (patch)
tree37c9133b3c8d160dd30c808d57a9986582767a16 /hints
parent898471883c344a0ca91f3181256a88fe8cd50057 (diff)
downloadperl-3fe25e0f6cb886de8a6ea0821c0c60588e818e66.tar.gz
[perl #50946] modified hints for Darwin x86 64bit
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
Diffstat (limited to 'hints')
-rw-r--r--hints/darwin.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index ffca869c9c..4dce97043e 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -224,9 +224,19 @@ EOM
*** 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'