summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-09-16 10:08:20 +0000
committeradam <adam@pkgsrc.org>2011-09-16 10:08:20 +0000
commit25602020b10506a90358bb1d60e3ae9eea6dfbc2 (patch)
treeb6f650801ad439a3f211c6553dd69d3ba17a9291 /lang
parentd1894ad8ce2c5a309a558969035962e02e5877ea (diff)
downloadpkgsrc-25602020b10506a90358bb1d60e3ae9eea6dfbc2.tar.gz
Fix for intereger overflow when compiled with Clang
Diffstat (limited to 'lang')
-rw-r--r--lang/python26/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index 26b5120752d..1c4aee890bd 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2011/09/12 20:14:06 bsiegert Exp $
+# $NetBSD: Makefile,v 1.42 2011/09/16 10:08:20 adam Exp $
.include "dist.mk"
@@ -33,6 +33,13 @@ PTHREAD_OPTS+= require
CONFIGURE_ARGS+= --with-pth
.endif
+.include "../../mk/compiler.mk"
+
+# Clang needs -fwrapv
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -fwrapv
+.endif
+
.include "../../mk/bsd.prefs.mk"
# fdatasync()