mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
cross-powerpc64le-linux-gnu: enable 32-bit powerpc targets
This is to match changes in gcc. [ci skip]
This commit is contained in:
parent
0941a412fc
commit
129f2243f0
2 changed files with 8 additions and 7 deletions
1
srcpkgs/cross-powerpc64le-linux-gnu/files/ppc64-pure64.patch
Symbolic link
1
srcpkgs/cross-powerpc64le-linux-gnu/files/ppc64-pure64.patch
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../gcc/patches/ppc64-pure64.patch
|
|
@ -4,13 +4,12 @@ _gcc_version=8.2.0
|
||||||
_glibc_version=2.28
|
_glibc_version=2.28
|
||||||
_linux_version=4.19
|
_linux_version=4.19
|
||||||
|
|
||||||
_cpu=powerpc64le
|
_triplet="powerpc64le-linux-gnu"
|
||||||
_triplet="${_cpu}-linux-gnu"
|
|
||||||
_sysroot="/usr/${_triplet}"
|
_sysroot="/usr/${_triplet}"
|
||||||
|
|
||||||
pkgname=cross-${_triplet}
|
pkgname=cross-${_triplet}
|
||||||
version=0.29
|
version=0.29
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="GNU cross toolchain for the ${_triplet} targets (binutils/gcc/glibc)"
|
short_desc="GNU cross toolchain for the ${_triplet} targets (binutils/gcc/glibc)"
|
||||||
maintainer="q66 <daniel@octaforge.org>"
|
maintainer="q66 <daniel@octaforge.org>"
|
||||||
homepage="https://www.voidlinux.org/"
|
homepage="https://www.voidlinux.org/"
|
||||||
|
@ -83,9 +82,8 @@ _gcc_bootstrap() {
|
||||||
cd ${wrksrc}/gcc-${_gcc_version}
|
cd ${wrksrc}/gcc-${_gcc_version}
|
||||||
_apply_patch -p0 ${FILESDIR}/fix-cxxflags-passing.patch
|
_apply_patch -p0 ${FILESDIR}/fix-cxxflags-passing.patch
|
||||||
_apply_patch -p0 ${FILESDIR}/fix-ppc64-float128-libstdc++.patch
|
_apply_patch -p0 ${FILESDIR}/fix-ppc64-float128-libstdc++.patch
|
||||||
|
_apply_patch -p0 ${FILESDIR}/ppc64-pure64.patch
|
||||||
|
|
||||||
sed -i '/OSDIRNAMES/s/lib64/lib/' gcc/config/rs6000/t-linux
|
|
||||||
sed -i '/m64=/s/lib64/lib/' gcc/config/rs6000/t-linux64
|
|
||||||
sed -i 's/lib64/lib/' gcc/config/rs6000/linux64.h
|
sed -i 's/lib64/lib/' gcc/config/rs6000/linux64.h
|
||||||
|
|
||||||
msg_normal "Building cross gcc bootstrap\n"
|
msg_normal "Building cross gcc bootstrap\n"
|
||||||
|
@ -95,9 +93,10 @@ _gcc_bootstrap() {
|
||||||
|
|
||||||
_args="--prefix=/usr"
|
_args="--prefix=/usr"
|
||||||
_args+=" --target=${_triplet}"
|
_args+=" --target=${_triplet}"
|
||||||
_args+=" --with-cpu=${_cpu}"
|
|
||||||
_args+=" --with-abi=elfv2"
|
_args+=" --with-abi=elfv2"
|
||||||
_args+=" --enable-languages=c"
|
_args+=" --enable-languages=c"
|
||||||
|
_args+=" --enable-secureplt"
|
||||||
|
_args+=" --enable-targets=powerpcle-linux"
|
||||||
_args+=" --disable-libssp"
|
_args+=" --disable-libssp"
|
||||||
_args+=" --disable-libitm"
|
_args+=" --disable-libitm"
|
||||||
_args+=" --without-headers"
|
_args+=" --without-headers"
|
||||||
|
@ -239,9 +238,10 @@ _gcc_build() {
|
||||||
_args+=" --libexecdir=/usr/lib"
|
_args+=" --libexecdir=/usr/lib"
|
||||||
_args+=" --target=${_triplet}"
|
_args+=" --target=${_triplet}"
|
||||||
_args+=" --with-sysroot=${_sysroot}"
|
_args+=" --with-sysroot=${_sysroot}"
|
||||||
_args+=" --with-cpu=${_cpu}"
|
|
||||||
_args+=" --with-abi=elfv2"
|
_args+=" --with-abi=elfv2"
|
||||||
_args+=" --enable-languages=c,ada,c++,fortran,lto"
|
_args+=" --enable-languages=c,ada,c++,fortran,lto"
|
||||||
|
_args+=" --enable-secureplt"
|
||||||
|
_args+=" --enable-targets=powerpcle-linux"
|
||||||
_args+=" --with-gnu-as"
|
_args+=" --with-gnu-as"
|
||||||
_args+=" --with-gnu-ld"
|
_args+=" --with-gnu-ld"
|
||||||
_args+=" --enable-libada"
|
_args+=" --enable-libada"
|
||||||
|
|
Loading…
Add table
Reference in a new issue