1#!/bin/sh -ue
2NAME=binutils
3VERSION=2.28
4RELEASE=1
5SOURCE="https://ftp.gnu.org/gnu/${NAME}/${NAME}-${VERSION}.tar.gz
6 ada-test.patch"
7
8build(){
9 find . -name config.cache -type f -delete
10 gmake clean
11 gmake distclean
12
13 CFLAGS='-static' PREFIX="$PREFIX" LDFLAGS='-static' CC="cc" ./configure \
14 --prefix="$PREFIX" \
15 --enable-static-link \
16 --disable-libada \
17 --disable-all-targets \
18 --enable-targets=x86_64-linux \
19 --disable-gprof \
20 --disable-gdb \
21 --disable-gdbserver \
22 --enable-gas \
23 --enable-ld \
24 --disable-nm \
25 --disable-nls \
26 --disable-shared \
27 --enable-static
28
29 gmake LDFLAGS='-static' V=1 configure-host
30 gmake LDFLAGS='-static -all-static' V=1
31 gmake LDFLAGS='-static -all-static' PREFIX="$PREFIX" DESTDIR="$PKG" V=1 install
32}
33
34. ${0%/*}/../../libsh/libdmake.sh