summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorfhajny <fhajny>2012-06-11 12:52:52 +0000
committerfhajny <fhajny>2012-06-11 12:52:52 +0000
commitd10bc76849ac91d3d4608880fa2d130abc78d3aa (patch)
tree2c32202202bdeb58db8a01bb4c5d9b9853f850b0 /benchmarks
parent10d96964eaa28db507d40ffc0b0e821b0dd8336a (diff)
downloadpkgsrc-d10bc76849ac91d3d4608880fa2d130abc78d3aa.tar.gz
Fix build on SunOS and GCC>=4.6
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/sysbench/Makefile8
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"