summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-03 21:51:45 +0000
committerjlam <jlam@pkgsrc.org>2004-02-03 21:51:45 +0000
commit7c469d9583722bcb547f7146aac8dc296509092b (patch)
treef2e56c21ad7e6340f16c877dec0bee1fc96ad57d /mk/compiler
parent57e7c01a806b070a75c11e11e3e32a5815131bab (diff)
downloadpkgsrc-7c469d9583722bcb547f7146aac8dc296509092b.tar.gz
":H", not ":T", is the correct make variable modifier to get everything
except the final component of a path.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 6de7b1738b5..c1416b8472a 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.19 2004/02/03 21:48:14 jlam Exp $
+# $NetBSD: gcc.mk,v 1.20 2004/02/03 21:51:45 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -200,7 +200,7 @@ PKG_SKIP_REASON= "Unable to satisfy dependency: ${_GCC_DEPENDS}"
# link against gcc shared libs.
#
. if !empty(_CC:M${LOCALBASE}/*)
-_GCC_SUBPREFIX= ${_CC:T:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}/
+_GCC_SUBPREFIX= ${_CC:H:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}/
. else
_GCC_SUBPREFIX!= \
if ${PKG_INFO} -qe ${_GCC_PKGBASE}; then \