blob: 6f698bb9bb1e3aaa95532e3596e3166d4f505144 (
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
57
58
59
60
61
62
63
64
|
# 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.36.1
release=2
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 \
"${PKG}/usr/include/ctf-api.h" \
"${PKG}/usr/include/ctf.h" \
"${PKG}/usr/lib/libctf-nobfd.a" \
"${PKG}/usr/lib/libctf-nobfd.la" \
"${PKG}/usr/lib/libctf-nobfd.so"* \
"${PKG}/usr/lib/libctf.a" \
"${PKG}/usr/lib/libctf.la" \
"${PKG}/usr/lib/libctf.so"*
rm -rf ${PKG}/usr/share/info
install -D -m0644 ${SRC}/avr-binutils.revdep ${PKG}/etc/revdep.d/${name}
}
|