# Basic information name="binutils" version="2.39" # Download options format="tar" url="https://ftp.gnu.org/gnu/binutils/binutils-$version.tar.gz" output="binutils-$version.tar.gz" sha256sum="d12ea6f239f1ffe3533ea11ad6e224ffcb89eb5d01bbea589e9158780fa11f10" # Build instructions default_build_make=true do_patch() { patch -ui $portdir/binutils.patch -p 1 -d $srcdir/.. } do_configure() { $srcdir/configure --host=$LUNA_ARCH-luna --disable-nls --disable-werror --enable-warn-rwx-segments=no --prefix=/usr --enable-gold=no --enable-ld=yes --enable-gprofng=no } do_install() { make install cd $installdir/usr/bin $LUNA_ARCH-luna-strip size objdump ar strings ranlib objcopy addr2line readelf elfedit nm strip c++filt as gprof ld.bfd ld }