diff options
author | drochner <drochner> | 2003-07-02 19:02:55 +0000 |
---|---|---|
committer | drochner <drochner> | 2003-07-02 19:02:55 +0000 |
commit | 4f34c9651a38fffb79976bbcc83f04a5fbad09b1 (patch) | |
tree | 44642ed8144475e16b3be1701286982f2a4763d3 /lang | |
parent | a8c84746ee8bc30595dd9a26899a6f43c805b311 (diff) | |
download | pkgsrc-4f34c9651a38fffb79976bbcc83f04a5fbad09b1.tar.gz |
Use some magic similar to share/mk/bsd.gcc.mk to set
_GCC_ARCHSUBDIR, which happens to be the location of
libgcc.
This makes the buildlink stuff work independantly of
the exact GNU_PLATFORM gcc3 was compiled for.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc3/buildlink2.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/gcc3/buildlink2.mk b/lang/gcc3/buildlink2.mk index c907b00a510..a8982fe7f27 100644 --- a/lang/gcc3/buildlink2.mk +++ b/lang/gcc3/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.4 2003/06/02 15:57:47 yyamano Exp $ +# $NetBSD: buildlink2.mk,v 1.5 2003/07/02 19:02:55 drochner Exp $ .if !defined(GCC3_BUILDLINK2_MK) GCC3_BUILDLINK2_MK= # defined @@ -22,7 +22,10 @@ BUILDLINK_PREFIX.gcc= ${LOCALBASE} _GCC_SUBPREFIX= gcc-3.3/ _GCC_PREFIX= ${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX} -_GCC_ARCHSUBDIR= lib/gcc-lib/${MACHINE_GNU_PLATFORM}/3.3 +_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 |