diff options
author | grant <grant> | 2003-09-12 13:03:38 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-12 13:03:38 +0000 |
commit | 30775ea1dbf5a35b1e799e5cceb4b842128d28e8 (patch) | |
tree | 2f0b05f9cd70438408d65d8be6f1342ef5a57230 /lang/gcc3 | |
parent | c50029248cdfbe11144580ed5b9c338157d6ac01 (diff) | |
download | pkgsrc-30775ea1dbf5a35b1e799e5cceb4b842128d28e8.tar.gz |
start of improved compiler handling, mostly derived from the existing
gcc buildlink2.mk files and splitting the non-buildlink2.mk bits out
into compiler.mk.
this allows USE_GCC2 and USE_GCC3 to work with non-buildlink2 packages
again.
Diffstat (limited to 'lang/gcc3')
-rw-r--r-- | lang/gcc3/buildlink2.mk | 16 |
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} |