cross-x86_64-linux-musl: add libgomp tls patch

This commit is contained in:
Johannes 2019-06-29 23:30:38 +02:00 committed by Jürgen Buchmüller
parent 2bc0ebcf99
commit 131dfcf4d1
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
../../gcc/patches/invalid_tls_model.patch

View file

@ -10,7 +10,7 @@ _sysroot="/usr/${_triplet}"
pkgname=cross-${_triplet} pkgname=cross-${_triplet}
version=0.31 version=0.31
revision=1 revision=2
archs="i686* x86_64 ppc64le" archs="i686* x86_64 ppc64le"
short_desc="Cross toolchain for x86_64 with musl" short_desc="Cross toolchain for x86_64 with musl"
maintainer="Juan RP <xtraeme@voidlinux.org>" maintainer="Juan RP <xtraeme@voidlinux.org>"
@ -86,6 +86,7 @@ _gcc_bootstrap() {
_apply_patch -p0 ${FILESDIR}/non-nullness.patch _apply_patch -p0 ${FILESDIR}/non-nullness.patch
_apply_patch -p0 ${FILESDIR}/musl-ada.patch _apply_patch -p0 ${FILESDIR}/musl-ada.patch
_apply_patch -p1 ${FILESDIR}/libgnarl-musl.patch _apply_patch -p1 ${FILESDIR}/libgnarl-musl.patch
_apply_patch -p0 ${FILESDIR}/invalid_tls_model.patch
sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64 sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
sed -i 's/lib64/lib/' gcc/config/i386/linux64.h sed -i 's/lib64/lib/' gcc/config/i386/linux64.h