Fix for intereger overflow when compiled with Clang

This commit is contained in:
adam 2011-09-16 10:08:20 +00:00
parent 2d2bb01221
commit faf8ae6ee8

View file

@ -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" .include "dist.mk"
@ -33,6 +33,13 @@ PTHREAD_OPTS+= require
CONFIGURE_ARGS+= --with-pth CONFIGURE_ARGS+= --with-pth
.endif .endif
.include "../../mk/compiler.mk"
# Clang needs -fwrapv
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -fwrapv
.endif
.include "../../mk/bsd.prefs.mk" .include "../../mk/bsd.prefs.mk"
# fdatasync() # fdatasync()