core/binutils/Pkgfile

41 lines
977 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: The GNU Binutils are a collection of binary tools
# URL: https://www.gnu.org/software/binutils/
2021-12-28 14:28:22 +01:00
# 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-08-21 23:18:50 +02:00
version=2.39
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() {
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 \
2022-08-21 23:18:50 +02:00
--enable-64-bit-bfd \
--enable-default-execstack=no \
2021-12-28 14:28:22 +01:00
--enable-ld=default \
--enable-gold=yes \
2021-12-11 19:33:57 +01:00
--enable-lto \
2022-08-21 23:18:50 +02:00
--enable-pgo-build=lto \
2021-12-28 14:28:22 +01:00
--enable-plugins \
--enable-install-libiberty \
2021-12-13 12:26:03 +01:00
--with-bugurl=https://crux.nu/bugs/ \
2022-08-21 23:18:50 +02:00
--with-pic \
--with-system-zlib \
--without-stage1-ldflags \
--disable-jansson \
2021-12-13 12:26:03 +01:00
--disable-nls \
--disable-werror
2022-08-21 23:18:50 +02:00
sed -i -e '/^MAKEINFO/s:=.*:= true:' Makefile
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
}