core/binutils/Pkgfile

36 lines
891 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: The GNU Binutils are a collection of binary tools
2021-12-28 14:28:22 +01:00
# URL: http://sources.redhat.com/binutils/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2021-12-13 12:26:03 +01:00
# Depends on: flex zlib
2006-02-23 16:26:10 +01:00
name=binutils
2022-02-10 19:16:16 +01:00
version=2.38
2020-07-25 02:17:35 +02:00
release=1
2022-02-10 19:16:16 +01:00
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build() {
2022-02-10 19:16:16 +01:00
# don't rebuild gas/doc/asconfig, would require texinfo
sed '2209,2212s/^/##/' -i $name-$version/gas/Makefile.in
2021-12-28 14:28:22 +01:00
mkdir build
cd build
2021-12-11 19:33:57 +01:00
../$name-$version/configure --prefix=/usr \
2021-12-28 14:28:22 +01:00
--enable-shared \
--enable-ld=default \
--enable-gold=yes \
2021-12-11 19:33:57 +01:00
--enable-lto \
2021-12-28 14:28:22 +01:00
--enable-plugins \
--enable-install-libiberty \
2021-12-11 19:33:57 +01:00
--with-system-zlib \
2021-12-13 12:26:03 +01:00
--with-bugurl=https://crux.nu/bugs/ \
--disable-nls \
--disable-werror
2021-12-28 14:28:22 +01:00
make tooldir=/usr
make tooldir=/usr DESTDIR=$PKG install
2021-12-28 14:28:22 +01:00
rm -r $PKG/usr/share/info
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
2006-02-23 16:26:10 +01:00
}