summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-05 01:28:20 +0000
committerjlam <jlam>2004-02-05 01:28:20 +0000
commit346910f6396255145f101a66129f9f05345b0a81 (patch)
tree6e59521183bc02e3367e42175e408a912b0174c5
parent317d71b24c207ebc3db6d40be677c96f41dd8dce (diff)
downloadpkgsrc-346910f6396255145f101a66129f9f05345b0a81.tar.gz
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.
-rw-r--r--mk/compiler/gcc.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 233d6eea33d..ddc4a464495 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -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 @@ _GCC_ARCHDIR!= \
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*}