mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
45cc27ca40
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
33 lines
796 B
Text
Executable file
33 lines
796 B
Text
Executable file
VERSION="2.31.1"
|
|
SRCDIR="binutils-$VERSION"
|
|
TARBALL="binutils-$VERSION.tar.xz"
|
|
URL="http://ftp.gnu.org/gnu/binutils"
|
|
SHA256SUM="5d20086ecf5752cc7d9134246e9588fa201740d540f7eb84d795b1f7a93bca86"
|
|
DEPENDS=""
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
local extra=""
|
|
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
|
--with-sysroot="$TCDIR/$TARGET" --disable-multilib \
|
|
--enable-shared --enable-plugins --enable-relro \
|
|
--with-pic --enable-deterministic-archives \
|
|
--with-lib-path="$TCDIR/$TARGET/lib" $extra
|
|
|
|
make configure-host
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
make install
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "$URL" | grep -o ">binutils-[0-9.]*tar.xz<" | \
|
|
sed 's/>binutils-//g' | sed 's/.tar.xz<//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
}
|