From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- repo/system/binutils/binutils.xibuild | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 repo/system/binutils/binutils.xibuild (limited to 'repo/system/binutils/binutils.xibuild') diff --git a/repo/system/binutils/binutils.xibuild b/repo/system/binutils/binutils.xibuild new file mode 100644 index 0000000..f7172ea --- /dev/null +++ b/repo/system/binutils/binutils.xibuild @@ -0,0 +1,69 @@ +#!/bin/sh + +MAKEDEPS="make dejagnu bzip2 xz zlib zstd patch" +DEPS="musl zlib libelf" + +PKG_VER=2.38 +SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-$PKG_VER.tar.xz + +ADDITIONAL=" +0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch +bfd-close-file-desriptor-if-there-is-no-archive-fd.patch +binutils-ld-fix-static-linking.patch +defang-no-split.patch +" + +DESC="Tools for handling object files" + +prepare () { + apply_patches + + find . -name '[a-z]*\.[0-9]*' -empty -exec rm -f {} \; +} + +build () { + mkdir build + cd build + + ../configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-multilib \ + --enable-ld=default \ + --enable-gold \ + --enable-64-bit-bfd \ + --enable-plugins \ + --enable-relro \ + --enable-install-libiberty \ + --enable-deterministic-archives \ + --enable-targets=x86_64-pep \ + --enable-default-hash-style=gnu \ + --with-pic \ + --disable-werror \ + --disable-nls \ + --with-system-zlib \ + --with-mmap + + make tooldir=/usr +} + +#check () { + #make -k check || true +#} + +package() { + make -j1 tooldir=/usr DESTDIR=$PKG_DEST install + cd .. + + # how about we use binutils ld? + rm -f $PKG_DEST/usr/bin/ld + ln -sf /usr/bin/ld.bfd $PKG_DEST/usr/bin/ld + + install -m 644 include/libiberty.h $PKG_DEST/usr/include + install -m 644 include/demangle.h $PKG_DEST/usr/include + + for f in dlltool nlmconv windres windmc; do + rm -f $PKG_DEST/usr/share/man/man1/${f}.1 + done +} -- cgit v1.2.1