cross/gcc-*: upgrade to 9.3.0-r4
This commit is contained in:
parent
e3e4b01add
commit
7381619a40
@ -23,14 +23,14 @@ CBUILDROOT="/"
|
|||||||
|
|
||||||
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
||||||
|
|
||||||
pkgname="gcc-aarch64"
|
pkgname=gcc-aarch64
|
||||||
pkgver=9.3.0
|
pkgver=9.3.0
|
||||||
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
|
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
|
||||||
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
|
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
|
||||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||||
|
|
||||||
pkgname="gcc-aarch64"
|
pkgname=gcc-aarch64
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Stage2 cross-compiler for aarch64"
|
pkgdesc="Stage2 cross-compiler for aarch64"
|
||||||
url="https://gcc.gnu.org"
|
url="https://gcc.gnu.org"
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
@ -461,9 +461,11 @@ libcxx() {
|
|||||||
pkgdesc="GNU C++ standard runtime library"
|
pkgdesc="GNU C++ standard runtime library"
|
||||||
depends=
|
depends=
|
||||||
|
|
||||||
|
if [ "$CHOST" = "$CTARGET" ]; then
|
||||||
# verify that we are using clock_gettime rather than doing direct syscalls
|
# verify that we are using clock_gettime rather than doing direct syscalls
|
||||||
# so we dont break 32 bit arches due to time64.
|
# so we dont break 32 bit arches due to time64.
|
||||||
nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime
|
nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/usr/lib
|
mkdir -p "$subpkgdir"/usr/lib
|
||||||
mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/
|
||||||
@ -498,8 +500,10 @@ objc() {
|
|||||||
replaces="gcc"
|
replaces="gcc"
|
||||||
depends="libc-dev gcc=$_gccrel libobjc=$_gccrel"
|
depends="libc-dev gcc=$_gccrel libobjc=$_gccrel"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/$_gcclibdir/include \
|
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||||
|
"$subpkgdir"/$_gcclibdir/include \
|
||||||
"$subpkgdir"/usr/lib
|
"$subpkgdir"/usr/lib
|
||||||
|
mv "$pkgdir/$_gcclibexec/cc1obj" "$subpkgdir/$_gcclibexec/"
|
||||||
mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/
|
mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/
|
||||||
mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \
|
mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \
|
||||||
"$subpkgdir"/usr/lib/
|
"$subpkgdir"/usr/lib/
|
||||||
@ -536,15 +540,19 @@ gdc() {
|
|||||||
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
||||||
depends="$depends libucontext-dev"
|
depends="$depends libucontext-dev"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/$_gcclibdir/include/d/ \
|
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||||
|
"$subpkgdir"/$_gcclibdir/include/d/ \
|
||||||
"$subpkgdir"/usr/lib \
|
"$subpkgdir"/usr/lib \
|
||||||
"$subpkgdir"/usr/bin
|
"$subpkgdir"/usr/bin
|
||||||
# Copy: The installed '.d' files, the static lib, the binary itself
|
# Copy: The installed '.d' files, the static lib, the binary itself
|
||||||
# The shared libs are part of 'libgphobos' so one can run program
|
# The shared libs are part of 'libgphobos' so one can run program
|
||||||
# without installing the compiler
|
# without installing the compiler
|
||||||
|
mv "$pkgdir/$_gcclibexec/d21" "$subpkgdir/$_gcclibexec/"
|
||||||
mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/
|
mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/
|
||||||
mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/
|
||||||
mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/
|
||||||
|
mv "$pkgdir"/usr/lib/libgphobos.spec "$subpkgdir"/usr/lib/
|
||||||
|
mv "$pkgdir"/usr/bin/$CTARGET-gdc "$subpkgdir"/usr/bin/
|
||||||
mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/
|
mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -609,6 +617,7 @@ gfortran() {
|
|||||||
"$pkgdir"/usr/lib/libquadmath.so \
|
"$pkgdir"/usr/lib/libquadmath.so \
|
||||||
"$subpkgdir"/usr/lib/
|
"$subpkgdir"/usr/lib/
|
||||||
fi
|
fi
|
||||||
|
mv "$pkgdir"/$_gcclibdir/finclude "$subpkgdir"/$_gcclibdir/
|
||||||
mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec
|
mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec
|
||||||
mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir
|
mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir
|
||||||
}
|
}
|
||||||
|
@ -23,14 +23,14 @@ CBUILDROOT="/"
|
|||||||
|
|
||||||
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
||||||
|
|
||||||
pkgname="gcc-armhf"
|
pkgname=gcc-armhf
|
||||||
pkgver=9.3.0
|
pkgver=9.3.0
|
||||||
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
|
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
|
||||||
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
|
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
|
||||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||||
|
|
||||||
pkgname="gcc-armhf"
|
pkgname=gcc-armhf
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Stage2 cross-compiler for armhf"
|
pkgdesc="Stage2 cross-compiler for armhf"
|
||||||
url="https://gcc.gnu.org"
|
url="https://gcc.gnu.org"
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
@ -461,9 +461,11 @@ libcxx() {
|
|||||||
pkgdesc="GNU C++ standard runtime library"
|
pkgdesc="GNU C++ standard runtime library"
|
||||||
depends=
|
depends=
|
||||||
|
|
||||||
|
if [ "$CHOST" = "$CTARGET" ]; then
|
||||||
# verify that we are using clock_gettime rather than doing direct syscalls
|
# verify that we are using clock_gettime rather than doing direct syscalls
|
||||||
# so we dont break 32 bit arches due to time64.
|
# so we dont break 32 bit arches due to time64.
|
||||||
nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime
|
nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/usr/lib
|
mkdir -p "$subpkgdir"/usr/lib
|
||||||
mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/
|
||||||
@ -498,8 +500,10 @@ objc() {
|
|||||||
replaces="gcc"
|
replaces="gcc"
|
||||||
depends="libc-dev gcc=$_gccrel libobjc=$_gccrel"
|
depends="libc-dev gcc=$_gccrel libobjc=$_gccrel"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/$_gcclibdir/include \
|
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||||
|
"$subpkgdir"/$_gcclibdir/include \
|
||||||
"$subpkgdir"/usr/lib
|
"$subpkgdir"/usr/lib
|
||||||
|
mv "$pkgdir/$_gcclibexec/cc1obj" "$subpkgdir/$_gcclibexec/"
|
||||||
mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/
|
mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/
|
||||||
mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \
|
mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \
|
||||||
"$subpkgdir"/usr/lib/
|
"$subpkgdir"/usr/lib/
|
||||||
@ -536,15 +540,19 @@ gdc() {
|
|||||||
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
||||||
depends="$depends libucontext-dev"
|
depends="$depends libucontext-dev"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/$_gcclibdir/include/d/ \
|
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||||
|
"$subpkgdir"/$_gcclibdir/include/d/ \
|
||||||
"$subpkgdir"/usr/lib \
|
"$subpkgdir"/usr/lib \
|
||||||
"$subpkgdir"/usr/bin
|
"$subpkgdir"/usr/bin
|
||||||
# Copy: The installed '.d' files, the static lib, the binary itself
|
# Copy: The installed '.d' files, the static lib, the binary itself
|
||||||
# The shared libs are part of 'libgphobos' so one can run program
|
# The shared libs are part of 'libgphobos' so one can run program
|
||||||
# without installing the compiler
|
# without installing the compiler
|
||||||
|
mv "$pkgdir/$_gcclibexec/d21" "$subpkgdir/$_gcclibexec/"
|
||||||
mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/
|
mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/
|
||||||
mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/
|
||||||
mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/
|
||||||
|
mv "$pkgdir"/usr/lib/libgphobos.spec "$subpkgdir"/usr/lib/
|
||||||
|
mv "$pkgdir"/usr/bin/$CTARGET-gdc "$subpkgdir"/usr/bin/
|
||||||
mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/
|
mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -609,6 +617,7 @@ gfortran() {
|
|||||||
"$pkgdir"/usr/lib/libquadmath.so \
|
"$pkgdir"/usr/lib/libquadmath.so \
|
||||||
"$subpkgdir"/usr/lib/
|
"$subpkgdir"/usr/lib/
|
||||||
fi
|
fi
|
||||||
|
mv "$pkgdir"/$_gcclibdir/finclude "$subpkgdir"/$_gcclibdir/
|
||||||
mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec
|
mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec
|
||||||
mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir
|
mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir
|
||||||
}
|
}
|
||||||
|
@ -23,14 +23,14 @@ CBUILDROOT="/"
|
|||||||
|
|
||||||
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
||||||
|
|
||||||
pkgname="gcc-armv7"
|
pkgname=gcc-armv7
|
||||||
pkgver=9.3.0
|
pkgver=9.3.0
|
||||||
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
|
[ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2"
|
||||||
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
|
[ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross=""
|
||||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||||
|
|
||||||
pkgname="gcc-armv7"
|
pkgname=gcc-armv7
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Stage2 cross-compiler for armv7"
|
pkgdesc="Stage2 cross-compiler for armv7"
|
||||||
url="https://gcc.gnu.org"
|
url="https://gcc.gnu.org"
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
@ -461,9 +461,11 @@ libcxx() {
|
|||||||
pkgdesc="GNU C++ standard runtime library"
|
pkgdesc="GNU C++ standard runtime library"
|
||||||
depends=
|
depends=
|
||||||
|
|
||||||
|
if [ "$CHOST" = "$CTARGET" ]; then
|
||||||
# verify that we are using clock_gettime rather than doing direct syscalls
|
# verify that we are using clock_gettime rather than doing direct syscalls
|
||||||
# so we dont break 32 bit arches due to time64.
|
# so we dont break 32 bit arches due to time64.
|
||||||
nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime
|
nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/usr/lib
|
mkdir -p "$subpkgdir"/usr/lib
|
||||||
mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/
|
||||||
@ -498,8 +500,10 @@ objc() {
|
|||||||
replaces="gcc"
|
replaces="gcc"
|
||||||
depends="libc-dev gcc=$_gccrel libobjc=$_gccrel"
|
depends="libc-dev gcc=$_gccrel libobjc=$_gccrel"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/$_gcclibdir/include \
|
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||||
|
"$subpkgdir"/$_gcclibdir/include \
|
||||||
"$subpkgdir"/usr/lib
|
"$subpkgdir"/usr/lib
|
||||||
|
mv "$pkgdir/$_gcclibexec/cc1obj" "$subpkgdir/$_gcclibexec/"
|
||||||
mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/
|
mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/
|
||||||
mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \
|
mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \
|
||||||
"$subpkgdir"/usr/lib/
|
"$subpkgdir"/usr/lib/
|
||||||
@ -536,15 +540,19 @@ gdc() {
|
|||||||
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
||||||
depends="$depends libucontext-dev"
|
depends="$depends libucontext-dev"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/$_gcclibdir/include/d/ \
|
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||||
|
"$subpkgdir"/$_gcclibdir/include/d/ \
|
||||||
"$subpkgdir"/usr/lib \
|
"$subpkgdir"/usr/lib \
|
||||||
"$subpkgdir"/usr/bin
|
"$subpkgdir"/usr/bin
|
||||||
# Copy: The installed '.d' files, the static lib, the binary itself
|
# Copy: The installed '.d' files, the static lib, the binary itself
|
||||||
# The shared libs are part of 'libgphobos' so one can run program
|
# The shared libs are part of 'libgphobos' so one can run program
|
||||||
# without installing the compiler
|
# without installing the compiler
|
||||||
|
mv "$pkgdir/$_gcclibexec/d21" "$subpkgdir/$_gcclibexec/"
|
||||||
mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/
|
mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/
|
||||||
mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/
|
||||||
mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/
|
mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/
|
||||||
|
mv "$pkgdir"/usr/lib/libgphobos.spec "$subpkgdir"/usr/lib/
|
||||||
|
mv "$pkgdir"/usr/bin/$CTARGET-gdc "$subpkgdir"/usr/bin/
|
||||||
mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/
|
mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -609,6 +617,7 @@ gfortran() {
|
|||||||
"$pkgdir"/usr/lib/libquadmath.so \
|
"$pkgdir"/usr/lib/libquadmath.so \
|
||||||
"$subpkgdir"/usr/lib/
|
"$subpkgdir"/usr/lib/
|
||||||
fi
|
fi
|
||||||
|
mv "$pkgdir"/$_gcclibdir/finclude "$subpkgdir"/$_gcclibdir/
|
||||||
mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec
|
mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec
|
||||||
mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir
|
mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user