diff options
author | jlam <jlam> | 2002-09-29 01:24:00 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-29 01:24:00 +0000 |
commit | 69db689c5e3a4ced80fb46ca2845fcf6228137de (patch) | |
tree | decd6588d6af059ff47d3044cb3aac961d5c0fde /lang | |
parent | d1c6469d33fc8a8f454e0ad33a831481f6e610d3 (diff) | |
download | pkgsrc-69db689c5e3a4ced80fb46ca2845fcf6228137de.tar.gz |
Need to pass the library path to libstdc++.so as well, and only add the
extra ld flags if we USE_CXX.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc/buildlink2.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/gcc/buildlink2.mk b/lang/gcc/buildlink2.mk index a71e10e81fc..ef98977eee1 100644 --- a/lang/gcc/buildlink2.mk +++ b/lang/gcc/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.3 2002/09/29 00:08:51 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.4 2002/09/29 01:24:00 jlam Exp $ .if !defined(GCC_BUILDLINK2_MK) GCC_BUILDLINK2_MK= # defined @@ -32,7 +32,7 @@ _GCC_PREFIX= ${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX} _GCC_ARCHSUBDIR= lib/gcc-lib/${MACHINE_GNU_PLATFORM}/2.95.3 _GCC_ARCHDIR= ${_GCC_PREFIX}${_GCC_ARCHSUBDIR} -BUILDLINK_LDFLAGS.gcc= -Wl,-R${_GCC_ARCHDIR} +BUILDLINK_LDFLAGS.gcc= -L${_GCC_ARCHDIR} -Wl,-R${_GCC_ARCHDIR} .if defined(USE_PKGSRC_GCC) _NEED_PKGSRC_GCC= YES @@ -68,7 +68,9 @@ CXX= ${_GCC_PREFIX}bin/g++ F77= ${_GCC_PREFIX}bin/g77 PKG_FC= ${F77} +. if defined(USE_CXX) LDFLAGS+= ${BUILDLINK_LDFLAGS.gcc} +. endif BUILDLINK_WRAPPER_ENV+= \ COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH .endif # _NEED_PKGSRC_GCC == YES |