ref: 536cef2b2ad9ba00df99f38b8eee764297562799
dir: /recipes/binutils/
name=binutils version=2.42 revision=1 tarball_url="https://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.xz" tarball_blake2b="e67a5c028fba70e70088fd11b38ec8c9c4ed5a019badefda25abeb6275997b16f0891e7ff3424c4b82bbfae92e8992669826920dd53df61cd48469d8f7cd5bd1" source_hostdeps="autoconf-2.69 automake-1.15.1" imagedeps="gcc" hostdeps="gcc autoconf-2.69 automake-1.15.1" deps="core-libs" regenerate() { autotools_recursive_regen -I"$(realpath ./config)" } build() { autotools_configure \ --target=${OS_TRIPLET} \ --with-build-sysroot=${sysroot_dir} \ --disable-gdb \ --disable-nls \ --disable-werror make -j${parallelism} } package() { DESTDIR="${dest_dir}" make install # Remove unnecessary directory rm -rf "${dest_dir}${prefix}"/${OS_TRIPLET} # Remove static libraries rm -rf "${dest_dir}${prefix}"/lib/*.a post_package_strip }