# Description: A set of programs to assemble and manipulate binary and object files for the AVR architecture # URL: http://www.gnu.org/software/binutils/ # Maintainer: Erich Eckner, crux at eckner dot net # Contributor: schuay, jakob dot gruber at gmail dot com # Contributor: Brad Fanella, bradfanella at archlinux dot us # Contributor: Corrado Primier, bardo at aur dot archlinux dot org # Contributor: danst0, danst0 at west dot de # Depends on: glibc zlib binutils name=avr-binutils version=2.38 release=1 source=("ftp://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2" "avr-binutils.revdep") build() { cd binutils-${version} sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure config_guess=$(./config.guess) mkdir binutils-build cd binutils-build ../configure \ --prefix=/usr \ --disable-nls \ --with-lib-path=/usr/lib:/usr/local/lib \ --with-bugurl=https://bugs.archlinux.org/ \ --enable-ld=default \ --enable-gold \ --enable-plugins \ --enable-threads \ --with-pic \ --disable-werror \ --disable-multilib \ --build=${config_guess} \ --target=avr make configure-host make tooldir=/usr make prefix=${PKG}/usr tooldir=${PKG}/usr install for bin in ar as nm objcopy objdump ranlib strip readelf do rm -f ${PKG}/usr/bin/${bin} done rm -rf ${PKG}/usr/share/info install -D -m0644 ${SRC}/avr-binutils.revdep ${PKG}/etc/revdep.d/${name} }