diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-06-11 12:52:52 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-06-11 12:52:52 +0000 |
commit | a4bbee85fff4a0f7766c1b96f4e15f44cabcb46c (patch) | |
tree | 2c32202202bdeb58db8a01bb4c5d9b9853f850b0 /benchmarks | |
parent | fe5bc8dfd4e5b0168a0ef25cf11b542c31b44659 (diff) | |
download | pkgsrc-a4bbee85fff4a0f7766c1b96f4e15f44cabcb46c.tar.gz |
Fix build on SunOS and GCC>=4.6
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/sysbench/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/benchmarks/sysbench/Makefile b/benchmarks/sysbench/Makefile index bc0d0c541a9..144e93f611a 100644 --- a/benchmarks/sysbench/Makefile +++ b/benchmarks/sysbench/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2011/04/22 14:40:40 obache Exp $ +# $NetBSD: Makefile,v 1.7 2012/06/11 12:52:52 fhajny Exp $ DISTNAME= sysbench-0.4.12 PKGREVISION= 1 @@ -22,6 +22,12 @@ MAKE_FLAGS+= bin_SCRIPTS= # don't install problematic scripts CFLAGS+= -D_NETBSD_SOURCE # hack for ulong along with patch-aa .endif +.include "../../mk/compiler.mk" +.if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \ + !empty(CC_VERSION:Mgcc-4.[6-9].*) +BUILDLINK_TRANSFORM+= rm:-D_XOPEN_SOURCE=500 +.endif + .include "options.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |