diff options
author | tnn <tnn@pkgsrc.org> | 2008-03-24 19:53:01 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2008-03-24 19:53:01 +0000 |
commit | d90b2855506efe4011a6a0d8bc2477e1783093a9 (patch) | |
tree | 36ebdd58990db34530757532c846fbecfb84fd17 /devel/binutils | |
parent | 9b0781fd8230a9f192cdaf26bedc3e9e4d7ed89c (diff) | |
download | pkgsrc-d90b2855506efe4011a6a0d8bc2477e1783093a9.tar.gz |
If a package includes this bl3.mk, then ensure that it uses as(1) provided
by binutils. This should fix multimedia/m{encoder,player} when using
the mplayer-ssse3 option. (huh, what's with the extra s in the option name?)
Reported in private mail from Dennis den Brok.
Diffstat (limited to 'devel/binutils')
-rw-r--r-- | devel/binutils/buildlink3.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/binutils/buildlink3.mk b/devel/binutils/buildlink3.mk index 8407117925f..e8edd4a9681 100644 --- a/devel/binutils/buildlink3.mk +++ b/devel/binutils/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.20 2007/05/29 12:27:24 martti Exp $ +# $NetBSD: buildlink3.mk,v 1.21 2008/03/24 19:53:01 tnn Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ BINUTILS_BUILDLINK3_MK:= ${BINUTILS_BUILDLINK3_MK}+ @@ -17,4 +17,11 @@ BUILDLINK_PKGSRCDIR.binutils?= ../../devel/binutils BUILDLINK_DEPMETHOD.binutils?= build .endif # BINUTILS_BUILDLINK3_MK +GNU_PREFIX_CMD= \ + ${PKG_INFO} -Q GNU_PROGRAM_PREFIX binutils 2>/dev/null \ + || { cd ${BUILDLINK_PKGSRCDIR.binutils} \ + && ${MAKE} ${MAKEFLAGS} show-var VARNAME=GNU_PROGRAM_PREFIX; } + +PKG_AS= ${PREFIX}/bin/${:!${GNU_PREFIX_CMD}!}as + BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |