diff options
author | adam <adam@pkgsrc.org> | 2011-09-16 10:08:20 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2011-09-16 10:08:20 +0000 |
commit | 25602020b10506a90358bb1d60e3ae9eea6dfbc2 (patch) | |
tree | b6f650801ad439a3f211c6553dd69d3ba17a9291 | |
parent | d1894ad8ce2c5a309a558969035962e02e5877ea (diff) | |
download | pkgsrc-25602020b10506a90358bb1d60e3ae9eea6dfbc2.tar.gz |
Fix for intereger overflow when compiled with Clang
-rw-r--r-- | lang/python26/Makefile | 9 |
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() |