Fix for intereger overflow when compiled with Clang
This commit is contained in:
parent
2d2bb01221
commit
faf8ae6ee8
1 changed files with 8 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue