45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
/*
|
|
* 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
|
|
}
|
|
}
|