pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/benchmarks/netperf netperf: Support newer GCC and clan...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b2120981b3f3
branches: trunk
changeset: 374965:b2120981b3f3
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Feb 01 13:40:27 2018 +0000
description:
netperf: Support newer GCC and clang on SunOS.
diffstat:
benchmarks/netperf/Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r ee981eb76704 -r b2120981b3f3 benchmarks/netperf/Makefile
--- a/benchmarks/netperf/Makefile Thu Feb 01 13:37:09 2018 +0000
+++ b/benchmarks/netperf/Makefile Thu Feb 01 13:40:27 2018 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index