build/pkg/tc-binutils/build

33 lines
770 B
Plaintext
Executable File

VERSION="2.34"
SRCDIR="binutils-$VERSION"
TARBALL="binutils-$VERSION.tar.xz"
URL="http://ftp.gnu.org/gnu/binutils"
SHA256SUM="f00b0e8803dc9bab1e2165bd568528135be734df3fabf8d0161828cd56028952"
DEPENDS="tc-pkgtool"
prepare() {
apply_patches
}
build() {
local extra="$BINUTILS_EXTRACFG"
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
--with-sysroot="$SYSROOT" --disable-multilib \
--enable-shared --enable-plugins --enable-relro \
--with-pic --enable-deterministic-archives \
--with-lib-path="$SYSROOT/lib" $extra
make configure-host
make -j $NUMJOBS
}
deploy() {
make install
touch "$PKGDEPLOYDIR/$PKGNAME.desc" "$PKGDEPLOYDIR/$PKGNAME.files"
}
check_update() {
check_update_simple "$URL" "binutils" "tar.xz"
}