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
|
2018-10-23 17:56:17 +02:00
|
|
|
version=2.31.1
|
2016-06-16 11:35:40 +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
|
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 \
|
2015-06-26 17:17:43 +02:00
|
|
|
--disable-werror
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
make tooldir=/usr
|
|
|
|
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
|
2018-10-23 17:56:17 +02:00
|
|
|
rm $PKG/usr/share/man/man1/{dlltool,windres,windmc}.1
|
2014-02-21 13:37:58 +01:00
|
|
|
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,opcodes}.la
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|