2006-02-23 16:26:10 +01:00
|
|
|
# Description: The GNU Binutils are a collection of binary tools
|
2023-05-28 10:21:44 +02:00
|
|
|
# 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
|
2023-08-21 22:17:11 +02:00
|
|
|
version=2.41
|
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() {
|
2023-08-21 22:17:11 +02:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2023-08-21 22:17:11 +02:00
|
|
|
../$name-$version/configure --prefix=/usr \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-64-bit-bfd \
|
|
|
|
--enable-default-execstack=no \
|
|
|
|
--enable-ld=default \
|
|
|
|
--enable-gold=yes \
|
|
|
|
--enable-lto \
|
|
|
|
--enable-pgo-build=lto \
|
|
|
|
--enable-plugins \
|
|
|
|
--enable-install-libiberty \
|
|
|
|
--with-bugurl=https://crux.nu/bugs/ \
|
|
|
|
--with-pic \
|
|
|
|
--with-system-zlib \
|
|
|
|
--without-stage1-ldflags \
|
|
|
|
--disable-jansson \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-werror
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2023-08-21 22:17:11 +02:00
|
|
|
sed -i -e '/^MAKEINFO/s:=.*:= true:' Makefile
|
2022-08-21 23:18:50 +02:00
|
|
|
|
2023-08-21 22:17:11 +02:00
|
|
|
make tooldir=/usr
|
|
|
|
make tooldir=/usr DESTDIR=$PKG install
|
2015-06-26 17:17:43 +02:00
|
|
|
|
2023-08-21 22:17:11 +02: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
|
|
|
}
|