diff options
author | tnn <tnn> | 2008-03-24 19:53:01 +0000 |
---|---|---|
committer | tnn <tnn> | 2008-03-24 19:53:01 +0000 |
commit | 1187c846d1997bf63747bdb2278a245ad43860ef (patch) | |
tree | 36ebdd58990db34530757532c846fbecfb84fd17 /devel | |
parent | bc0dac576bd9ae46002b23b83cf4568e66bf1cbb (diff) | |
download | pkgsrc-1187c846d1997bf63747bdb2278a245ad43860ef.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')
-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/+$//} |