From 25602020b10506a90358bb1d60e3ae9eea6dfbc2 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 16 Sep 2011 10:08:20 +0000 Subject: Fix for intereger overflow when compiled with Clang --- lang/python26/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lang/python26') 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() -- cgit v1.2.3