2006-02-23 16:26:10 +01:00
|
|
|
# Description: The GNU Binutils are a collection of binary tools
|
|
|
|
# URL: http://sources.redhat.com/binutils/
|
2007-01-23 18:25:18 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2015-06-26 17:17:43 +02:00
|
|
|
# Depends on: zlib flex
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=binutils
|
2021-02-02 12:54:24 +01:00
|
|
|
version=2.35.2
|
2020-07-25 02:17:35 +02:00
|
|
|
release=1
|
2018-01-05 23:21:14 +01:00
|
|
|
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2013-04-05 12:08:09 +02:00
|
|
|
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
|
2020-05-15 23:29:28 +02:00
|
|
|
sed -i '/^SUBDIRS/s/doc//' $name-$version/binutils/Makefile.in
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
../$name-$version/configure --prefix=/usr \
|
2007-08-30 10:05:49 +02:00
|
|
|
--enable-shared \
|
2015-06-26 17:17:43 +02:00
|
|
|
--disable-nls \
|
|
|
|
--enable-ld=default \
|
|
|
|
--enable-gold=yes \
|
|
|
|
--enable-plugins \
|
2016-04-06 17:52:11 +02:00
|
|
|
--enable-install-libiberty \
|
2020-07-17 16:45:27 +02:00
|
|
|
--disable-werror \
|
|
|
|
--with-system-zlib
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2020-07-25 02:17:35 +02:00
|
|
|
make tooldir=/usr
|
2006-02-23 16:26:10 +01:00
|
|
|
make tooldir=/usr DESTDIR=$PKG install
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2015-07-25 19:41:52 +02:00
|
|
|
rm -r $PKG/usr/share/info
|
2020-07-24 12:06:33 +02:00
|
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|