diff options
author | drochner <drochner> | 2003-07-02 19:02:55 +0000 |
---|---|---|
committer | drochner <drochner> | 2003-07-02 19:02:55 +0000 |
commit | 2ac312d951a3d3390d529b32c8bb13de91f12e2d (patch) | |
tree | 44642ed8144475e16b3be1701286982f2a4763d3 /lang/gcc3 | |
parent | 38b50c6dee3151d0246f289f08200a9f6022237a (diff) | |
download | pkgsrc-2ac312d951a3d3390d529b32c8bb13de91f12e2d.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/gcc3')
-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 |