From df6f4a00b6032b8a1c5f750190cccf5d41f16d8e Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 9 Jan 2022 00:57:08 +0000 Subject: updated binutils --- repo/core/binutils.xibuild | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'repo/core') diff --git a/repo/core/binutils.xibuild b/repo/core/binutils.xibuild index e2db260..704db29 100644 --- a/repo/core/binutils.xibuild +++ b/repo/core/binutils.xibuild @@ -6,8 +6,28 @@ SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.xz DESC="tools for handling object files" build () { - ./configure --prefix=/usr --disable-nls --disable-werror - make - make DESTDIR=$PKG_DEST install + # An error in the building system causes the shipped man pages to be empty. Workaround the issue and remove the shipped man pages, so the man pages will be regenerated correctly: + + sed -i '63d' etc/texi2pod.pl + find -name \*.1 -delete + + mkdir -v build + cd build + ../configure --prefix=/usr \ + --enable-gold \ + --enable-ld=default \ + --enable-plugins \ + --enable-shared \ + --disable-werror \ + --enable-64-bit-bfd \ + --with-system-zlib + + make tooldir=/usr + make -k check + make -j1 DESTDIR=$PKG_DEST install } +package() { + rm -fv $PKG_DEST/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a + +} -- cgit v1.2.1