diff options
-rw-r--r-- | mk/compiler/gcc.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 02926a99371..d8a722e559a 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.28 2004/02/04 22:33:18 jlam Exp $ +# $NetBSD: gcc.mk,v 1.29 2004/02/04 23:10:19 jlam Exp $ .if !defined(COMPILER_GCC_MK) COMPILER_GCC_MK= defined @@ -210,7 +210,11 @@ _GCC_SUBPREFIX!= \ else \ case ${_CC} in \ ${LOCALBASE}/*) \ - ${ECHO} "${_CC:H:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}/" ; \ + subprefix="${_CC:H:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}"; \ + case "$${subprefix}" in \ + "") ${ECHO} "$${subprefix}"; \ + *) ${ECHO} "$${subprefix}/; \ + esac; \ ;; \ *) \ ${ECHO} "_GCC_SUBPREFIX_not_found/"; \ |