pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/benchmarks/netperf
Module Name: pkgsrc
Committed By: jperkin
Date: Thu Feb 1 13:40:27 UTC 2018
Modified Files:
pkgsrc/benchmarks/netperf: Makefile
Log Message:
netperf: Support newer GCC and clang on SunOS.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/benchmarks/netperf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/benchmarks/netperf/Makefile
diff -u pkgsrc/benchmarks/netperf/Makefile:1.12 pkgsrc/benchmarks/netperf/Makefile:1.13
--- pkgsrc/benchmarks/netperf/Makefile:1.12 Wed Mar 30 13:24:12 2016
+++ pkgsrc/benchmarks/netperf/Makefile Thu Feb 1 13:40:27 2018
@@ -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
Home |
Main Index |
Thread Index |
Old Index