First push!

This commit is contained in:
2026-08-18 00:31:50 -04:00
commit 5f93867198
10 changed files with 431 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
/*
* binutils — GNU assembler, linker, and binary tools (as, ld, ar, nm,
* objdump, strip, readelf, ...).
*
* gcc needs as/ld on PATH when it builds libgcc, so gcc's recipe resolves
* this package's bin dir. Compressed debug sections use the BUNDLED zlib
* (no external dependency).
*
* PORTABILITY: --disable-werror (never fail builds on warnings from any
* host compiler) and --disable-nls (no gettext/libintl — keeps every
* binary free of distro-specific libintl). The test suite requires
* dejagnu (runtest), which is not part of the bootstrap chain — check is
* deliberately omitted.
*/
package "binutils" {
const version = "2.47"
const source = "https://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.gz"
sha256 = "15f5abd0db9cf8ea116f516a9ce12bc1cefef491ef9e50942868093d8f92a6f3"
license = "GPL-3.0-or-later"
provides = ["as", "ld", "ar", "nm", "objdump", "strip", "readelf"]
depends = [
{ name = "make" },
]
prepare {
curl -L -O ${source}
echo "15f5abd0db9cf8ea116f516a9ce12bc1cefef491ef9e50942868093d8f92a6f3 binutils-${version}.tar.gz" | sha256sum -c -
tar xf binutils-${version}.tar.gz --strip-components=1
}
build {
./configure --prefix=${prefix} --disable-werror --disable-nls
make -j${jobs}
}
install {
make DESTDIR=${destdir} install
// Strip libtool .la files: they record stale absolute paths that
// break dependents linking against these libraries.
find ${destdir} -name '*.la' -delete
}
}