diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-02-01 13:40:27 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-02-01 13:40:27 +0000 |
commit | 36ca4e554ffe8a6dd011d66aedbe3d1ef1c3f157 (patch) | |
tree | 0fbd14b32a65c5b1c3a44401c8e0a0aa88153b31 | |
parent | feea1688d34c8e70f3a4ca67683a1b31b562ab42 (diff) | |
download | pkgsrc-36ca4e554ffe8a6dd011d66aedbe3d1ef1c3f157.tar.gz |
netperf: Support newer GCC and clang on SunOS.
-rw-r--r-- | benchmarks/netperf/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/benchmarks/netperf/Makefile b/benchmarks/netperf/Makefile index 91e1f6268b0..1e29b2fa71b 100644 --- a/benchmarks/netperf/Makefile +++ b/benchmarks/netperf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2016/03/30 13:24:12 jperkin Exp $ +# $NetBSD: Makefile,v 1.13 2018/02/01 13:40:27 jperkin Exp $ DISTNAME= netperf-2.7.0 CATEGORIES= benchmarks @@ -14,7 +14,14 @@ GNU_CONFIGURE= yes INFO_FILES= yes CFLAGS.IRIX+= -DIRIX + +.include "../../mk/compiler.mk" + +. if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) +CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ +.else CFLAGS.SunOS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ +.endif INSTALLATION_DIRS= ${PKGMANDIR}/man1 |