summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/buildlink2.mk16
1 files changed, 3 insertions, 13 deletions
diff --git a/lang/gcc3/buildlink2.mk b/lang/gcc3/buildlink2.mk
index aeebfc89c37..a2283afff19 100644
--- a/lang/gcc3/buildlink2.mk
+++ b/lang/gcc3/buildlink2.mk
@@ -1,13 +1,11 @@
-# $NetBSD: buildlink2.mk,v 1.6 2003/07/13 13:04:10 grant Exp $
+# $NetBSD: buildlink2.mk,v 1.7 2003/09/12 13:03:41 grant Exp $
-# do not directly include this file. .include "../../mk/gcc.buildlink2.mk"
-# to ensure the correct gcc package is selected based on USE_GCC2 and
-# USE_GCC3.
+# Do not directly include this file in package Makefiles. It is
+# automatically included when required based on USE_GCC3.
.if !defined(GCC3_BUILDLINK2_MK)
GCC3_BUILDLINK2_MK= # defined
-GCC_REQD?= 3.3
BUILDLINK_DEPENDS.gcc?= gcc3>=${GCC_REQD}
BUILDLINK_PKGSRCDIR.gcc?= ../../lang/gcc3
@@ -22,23 +20,15 @@ BUILDLINK_DEPMETHOD.gcc?= build
BUILDLINK_PREFIX.gcc= ${LOCALBASE}
-_GCC_SUBPREFIX= gcc-3.3/
_GCC_PREFIX= ${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX}
_GCC_LIBGCCDIR!= \
dirname `${_GCC_PREFIX}bin/gcc --print-libgcc-file-name`
_GCC_ARCHSUBDIR= \
${_GCC_LIBGCCDIR:S|^${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX}||}
-_GCC_ARCHDIR= ${_GCC_PREFIX}${_GCC_ARCHSUBDIR}
BUILDLINK_LDFLAGS.gcc= -L${_GCC_ARCHDIR} -Wl,${RPATH_FLAG}${_GCC_ARCHDIR} -L${_GCC_PREFIX}lib -Wl,${RPATH_FLAG}${_GCC_PREFIX}lib
BUILDLINK_PACKAGES+= gcc
-PATH:= ${_GCC_PREFIX}bin:${PATH}
-CC= ${_GCC_PREFIX}bin/gcc
-CPP= ${_GCC_PREFIX}bin/cpp
-CXX= ${_GCC_PREFIX}bin/g++
-F77= ${_GCC_PREFIX}bin/g77
-PKG_FC= ${F77}
.if defined(USE_GCC_SHLIB)
LDFLAGS+= ${BUILDLINK_LDFLAGS.gcc}