summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-07-01 10:18:58 +0000
committersbd <sbd@pkgsrc.org>2012-07-01 10:18:58 +0000
commit6113f2277e388da665b05eeba2469a81b83e5506 (patch)
treebed462cd00b90579cae3b00b6bb046a7808f31fd /benchmarks
parent3507fcda2d64e9f1bab45776a4e4d33813d870f9 (diff)
downloadpkgsrc-6113f2277e388da665b05eeba2469a81b83e5506.tar.gz
Improve the sed command used in GET_OS_CMD to work with '*-*-linux-gnu'
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/hbench/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile
index 89f293cf851..652af80e7f3 100644
--- a/benchmarks/hbench/Makefile
+++ b/benchmarks/hbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2012/02/28 15:49:56 hans Exp $
+# $NetBSD: Makefile,v 1.48 2012/07/01 10:18:58 sbd Exp $
DISTNAME= hbench-OS-1.1
PKGNAME= hbench-1.1
@@ -27,7 +27,7 @@ OVERRIDE_GNU_CONFIG_SCRIPTS= yes
MAKE_JOBS_SAFE= no
GET_ARCH_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/-.*-.*$$//'
-GET_OS_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/^.*-.*-//'
+GET_OS_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/^[^-]*-[^-]*-//;s/-.*$$//'
PLIST_SUBST+= PLATFORM=${GET_OS_CMD:sh:Q}-${GET_ARCH_CMD:sh:Q}
.include "../../mk/bsd.prefs.mk"