pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Try to avoid "/" as the _GCC_SUBPREFIX.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e0955155dd04
branches:  trunk
changeset: 467661:e0955155dd04
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Feb 04 23:10:19 2004 +0000

description:
Try to avoid "/" as the _GCC_SUBPREFIX.

diffstat:

 mk/compiler/gcc.mk |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 832bbfae8b75 -r e0955155dd04 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Wed Feb 04 23:02:05 2004 +0000
+++ b/mk/compiler/gcc.mk        Wed Feb 04 23:10:19 2004 +0000
@@ -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 @@
        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/";            \



Home | Main Index | Thread Index | Old Index