core/binutils/Pkgfile

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# 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
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
2006-02-23 16:26:10 +01:00
mkdir build
cd build
2006-02-23 16:26:10 +01:00
../$name-$version/configure --prefix=/usr \
2007-08-30 10:05:49 +02:00
--enable-shared \
--disable-nls \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
2016-04-06 17:52:11 +02:00
--enable-install-libiberty \
--disable-werror \
--with-system-zlib
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
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
}