diff options
author | fhajny <fhajny> | 2012-06-11 12:52:52 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2012-06-11 12:52:52 +0000 |
commit | 26825cce624814983236c3db2856fa78f538b968 (patch) | |
tree | 2c32202202bdeb58db8a01bb4c5d9b9853f850b0 /benchmarks/sysbench | |
parent | 5f88097d66ad9480a7a8c773fe9fc461726a8ef9 (diff) | |
download | pkgsrc-26825cce624814983236c3db2856fa78f538b968.tar.gz |
Fix build on SunOS and GCC>=4.6
Diffstat (limited to 'benchmarks/sysbench')
-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" |