blob: d9fd4c64dca206de823e9368d3bfa0dde0c742a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# 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.30
release=1
source=("ftp://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2"
"avr-size.patch"
"avr-binutils.revdep")
build() {
cd binutils-${version}
patch -Np0 < "${SRC}/avr-size.patch"
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 \
--enable-shared \
--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}
}
|