summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorsbd <sbd>2012-07-01 10:18:58 +0000
committersbd <sbd>2012-07-01 10:18:58 +0000
commitada81e23d43bafb85b8c0dd3642068a717c895cd (patch)
treebed462cd00b90579cae3b00b6bb046a7808f31fd /benchmarks
parent9d75287ae305403e7a8d2afeed17029cecf85cfd (diff)
downloadpkgsrc-ada81e23d43bafb85b8c0dd3642068a717c895cd.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"