avr-binutils: enable cross-build.

This commit is contained in:
Christian Neukirchen 2016-05-19 17:09:54 +02:00
parent a7094cb62f
commit be81f33d96
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'avr-binutils' # Template file for 'avr-binutils'
pkgname=avr-binutils pkgname=avr-binutils
version=2.26 version=2.26
revision=1 revision=2
short_desc="GNU binary utilities for AVR" short_desc="GNU binary utilities for AVR"
maintainer="allan <mail@may.mooo.com>" maintainer="allan <mail@may.mooo.com>"
homepage="http://www.gnu.org/software/binutils/" homepage="http://www.gnu.org/software/binutils/"
@ -9,9 +9,8 @@ license="GPL-3"
distfiles="$GNU_SITE/binutils/binutils-$version.tar.gz" distfiles="$GNU_SITE/binutils/binutils-$version.tar.gz"
checksum=9615feddaeedc214d1a1ecd77b6697449c952eab69d79ab2125ea050e944bcc1 checksum=9615feddaeedc214d1a1ecd77b6697449c952eab69d79ab2125ea050e944bcc1
wrksrc="binutils-$version" wrksrc="binutils-$version"
only_for_archs="i686 x86_64"
hostmakedepends="zlib-devel" makedepends="zlib-devel"
do_configure() { do_configure() {
./configure \ ./configure \
@ -23,6 +22,8 @@ do_configure() {
--enable-threads \ --enable-threads \
--enable-install-libbfd \ --enable-install-libbfd \
--prefix=/usr \ --prefix=/usr \
--build=x86_64-unknown-linux-gnu \
--host=$XBPS_CROSS_TRIPLET \
--target=avr \ --target=avr \
--with-pic --with-pic