34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# Description: The GNU Binutils are a collection of binary tools
|
|
# URL: http://sources.redhat.com/binutils/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: zlib flex
|
|
|
|
name=binutils
|
|
version=2.35.1
|
|
release=1
|
|
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
|
|
sed -i '/^SUBDIRS/s/doc//' $name-$version/binutils/Makefile.in
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
|
--enable-shared \
|
|
--disable-nls \
|
|
--enable-ld=default \
|
|
--enable-gold=yes \
|
|
--enable-plugins \
|
|
--enable-install-libiberty \
|
|
--disable-werror \
|
|
--with-system-zlib
|
|
|
|
make tooldir=/usr
|
|
make tooldir=/usr DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share/info
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
|
|
}
|