diff options
author | jlam <jlam> | 2002-09-29 06:35:20 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-29 06:35:20 +0000 |
commit | e9b61ee44619583cac3de06bf8b99f72dc26b64d (patch) | |
tree | 5ed1bced67b22e558a3e3a687e54c817d2a3633b /devel | |
parent | 3e3baa5284678eef3fc3309cd5dcfab755747814 (diff) | |
download | pkgsrc-e9b61ee44619583cac3de06bf8b99f72dc26b64d.tar.gz |
Set AS, LD, RANLIB, etc. when using devel/binutils so that the build
system uses the correct binutils. It's not enough to just stick them to
the front of the PATH.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/binutils/buildlink2.mk | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/devel/binutils/buildlink2.mk b/devel/binutils/buildlink2.mk index c60de694961..24a2d87e7de 100644 --- a/devel/binutils/buildlink2.mk +++ b/devel/binutils/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.4 2002/09/22 10:11:00 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.5 2002/09/29 06:35:20 jlam Exp $ .if !defined(BINUTILS_BUILDLINK2_MK) BINUTILS_BUILDLINK2_MK= # defined @@ -33,8 +33,17 @@ _NEED_BINUTILS= YES .if ${_NEED_BINUTILS} == "YES" BUILDLINK_PACKAGES+= binutils -EVAL_PREFIX+= BUILDLINK_PREFIX.binutils=binutils -BUILDLINK_PREFIX.binutils_DEFAULT= ${LOCALBASE} +BUILDLINK_PREFIX.binutils= ${LOCALBASE} + +PATH:= ${BUILDLINK_PREFIX.binutils}/bin:${PATH} + +AR= ${BUILDLINK_PREFIX.binutils}/bin/ar +AS= ${BUILDLINK_PREFIX.binutils}/bin/as +LD= ${BUILDLINK_PREFIX.binutils}/bin/ld +NM= ${BUILDLINK_PREFIX.binutils}/bin/nm +RANLIB= ${BUILDLINK_PREFIX.binutils}/bin/ranlib +.endif # _NEED_BINUTILS == YES + BUILDLINK_FILES.binutils+= include/ansidecl.h BUILDLINK_FILES.binutils+= include/bfd.h BUILDLINK_FILES.binutils+= include/bfdlink.h @@ -44,9 +53,6 @@ BUILDLINK_FILES.binutils+= lib/libopcodes.* BUILDLINK_TARGETS+= binutils-buildlink -PATH:= ${BUILDLINK_PREFIX.binutils}/bin:${PATH} - binutils-buildlink: _BUILDLINK_USE -.endif # _NEED_BINUTILS == YES .endif # BINUTILS_BUILDLINK2_MK |