summaryrefslogtreecommitdiff
path: root/lang/python33/Makefile
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-03-10 23:14:35 +0000
committerjperkin <jperkin@pkgsrc.org>2014-03-10 23:14:35 +0000
commitc71a0a292f4c35c9a93cd1a9e75b1f3eed4d5e45 (patch)
tree0835a9b7a5590f0e6a0623275352308f2b0248e2 /lang/python33/Makefile
parentec100b545c3e8c0a9506d9eabd65cf1473a97c16 (diff)
downloadpkgsrc-c71a0a292f4c35c9a93cd1a9e75b1f3eed4d5e45.tar.gz
Force the use of clang on Snow Leopard, the llvm-backed gcc is unable to
compile Python 3.3 correctly, and as per http://bugs.python.org/issue13241 the Python developers are uninterested in fixing this.
Diffstat (limited to 'lang/python33/Makefile')
-rw-r--r--lang/python33/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python33/Makefile b/lang/python33/Makefile
index 7d707e8ffaa..63b38de2edd 100644
--- a/lang/python33/Makefile
+++ b/lang/python33/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2014/02/12 23:18:05 tron Exp $
+# $NetBSD: Makefile,v 1.17 2014/03/10 23:14:35 jperkin Exp $
.include "dist.mk"
@@ -30,6 +30,13 @@ PTHREAD_OPTS+= require
.include "../../mk/bsd.prefs.mk"
+# http://bugs.python.org/issue13241
+.if !empty(MACHINE_PLATFORM:MDarwin-10.*)
+PKGSRC_COMPILER= clang
+CC= clang
+CXX= clang++
+.endif
+
# fdatasync()
LIBS.SunOS+= -lrt