pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Reset the values of _GCC_PREFIX and _GCC_S...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/306857785828
branches:  trunk
changeset: 467671:306857785828
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Feb 05 01:28:20 2004 +0000

description:
Reset the values of _GCC_PREFIX and _GCC_SUBPREFIX from the value of
_GCC_ARCHDIR, since _GCC_ARCHDIR is something that GCC actually tells us
and can be relied upon to accurately give the installed location of GCC.

diffstat:

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

diffs (20 lines):

diff -r 9ae205114485 -r 306857785828 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Thu Feb 05 00:35:50 2004 +0000
+++ b/mk/compiler/gcc.mk        Thu Feb 05 01:28:20 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.31 2004/02/04 23:25:13 jlam Exp $
+# $NetBSD: gcc.mk,v 1.32 2004/02/05 01:28:20 jlam Exp $
 
 .if !defined(COMPILER_GCC_MK)
 COMPILER_GCC_MK=       defined
@@ -228,6 +228,10 @@
        else                                                            \
                ${ECHO} "_GCC_ARCHDIR_not_found";                       \
        fi
+.  if empty(_GCC_ARCHDIR:M*not_found*)
+_GCC_PREFIX:=          ${_GCC_ARCHDIR:H:H:H:H}
+_GCC_SUBPREFIX:=       ${_GCC_PREFIX:T}
+.  endif
 _GCC_LIBDIRS=  ${_GCC_ARCHDIR} ${_GCC_PREFIX}lib
 _GCC_LDFLAGS=  # empty
 .  for _dir_ in ${_GCC_LIBDIRS:N*not_found*}



Home | Main Index | Thread Index | Old Index