core/binutils/Pkgfile

38 lines
927 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
# Depends on: zlib flex
2006-02-23 16:26:10 +01:00
name=binutils
2021-12-28 14:28:22 +01:00
version=2.37
2020-07-25 02:17:35 +02:00
release=1
2021-12-28 17:49:41 +01:00
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
CVE-2021-45078.patch)
2006-02-23 16:26:10 +01:00
build() {
2021-12-28 17:49:41 +01:00
patch -p1 -d $name-$version -i $SRC/CVE-2021-45078.patch
2021-12-28 14:28:22 +01:00
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
sed -i '/^SUBDIRS/s/doc//' $name-$version/binutils/Makefile.in
2021-12-28 14:28:22 +01:00
mkdir build
cd build
2021-12-28 14:28:22 +01:00
../$name-$version/configure \
--prefix=/usr \
--enable-shared \
--disable-nls \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
--enable-install-libiberty \
--disable-werror \
--with-system-zlib
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
}