mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
e7a86f1f70
This is a workaround for an issue with binutils on statically linked x86 binaries. The tls section has some loading flag set wrong and is not mapped into memory by the kernel. The musl startup code tries to parse the section information and segfaults. See: http://www.openwall.com/lists/musl/2018/07/18/5 Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
29 lines
No EOL
653 B
Text
Executable file
29 lines
No EOL
653 B
Text
Executable file
VERSION="2.30"
|
|
SRCDIR="binutils-$VERSION"
|
|
TARBALL="binutils-$VERSION.tar.xz"
|
|
URL="http://ftp.gnu.org/gnu/binutils"
|
|
SHA256SUM="6e46b8aeae2f727a36f0bd9505e405768a72218f1796f0d09757d45209871ae6"
|
|
DEPENDS=""
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
|
--with-sysroot="$TCDIR/$TARGET" --disable-multilib \
|
|
--with-lib-path="$TCDIR/$TARGET/lib"
|
|
|
|
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"
|
|
} |