# Maintainer: PktSurf app=binutils version=2.40 build=1sml homepage="https://www.gnu.org/software/binutils/" download="https://ftp.gnu.org/gnu/binutils/binutils-$version.tar.lz" desc="Collection of utilities for examining ELF binaries" requires="zlib zstd" noautoconfsite=1 prepbuilddir() { mkandenterbuilddir rm -rf $app-$version tar xf $srcdir/$app-$version.tar.?z* cd $app-$version fixbuilddirpermissions applypatch $srcdir/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch applypatch $srcdir/binutils-ld-fix-static-linking.patch } build() { ./configure \ --prefix=/usr \ --libdir="/usr/lib" \ --with-sysroot=/ \ --enable-deterministic-archives \ --enable-gold \ --enable-64-bit-bfd \ --enable-relro \ --enable-threads \ --enable-shared \ --enable-plugins \ --enable-default-hash-style=gnu \ --enable-colored-disassembly \ --enable-default-execstack=no \ --enable-ld=default \ --enable-new-dtags \ --enable-targets=x86_64-pep \ --with-pic \ --with-mmap \ --with-system-zlib \ --disable-multilib \ --disable-nls \ --disable-gdb \ --disable-werror \ --disable-gprofng make make install DESTDIR="$pkg" cp COPYING $pkgdocs mkfinalpkg } sha512sums=" 182c189285733adcc9bdcf9eaf047a558c025354db395f450ce346075a42eb8c05d7ebc6ffe84a439f094be27216f020812c2754507199e481922f0bc041b194 binutils-2.40.tar.lz 70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch "