summaryrefslogtreecommitdiff
path: root/repo/core
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-09 00:57:08 +0000
committerdavidovski <david@davidovski.xyz>2022-01-09 00:57:08 +0000
commitdf6f4a00b6032b8a1c5f750190cccf5d41f16d8e (patch)
tree59ba7c1c12ec4d43f875e9cb4f523ca70c928a57 /repo/core
parent031e5b1128e43bc6b6464294dba811522c927419 (diff)
updated binutils
Diffstat (limited to 'repo/core')
-rw-r--r--repo/core/binutils.xibuild26
1 files changed, 23 insertions, 3 deletions
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
+
+}