blob: 446a0b57de69d04c799cbfcddf7918560b0de004 (
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
|
# 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.33.1
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 \
--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}
}
|