update to 12.4-systemd: gcc-15.2.0
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
pkgname="gcc"
|
pkgname="gcc"
|
||||||
pkgver="14.2.0"
|
pkgver="15.2.0"
|
||||||
pkgdesc="The GNU Compiler Collection"
|
pkgdesc="The GNU Compiler Collection"
|
||||||
homepage="https://gcc.gnu.org"
|
homepage="https://gcc.gnu.org"
|
||||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||||
urls=("https://ftp.gnu.org/gnu/gcc/${pkgname}-${pkgver}/${sources[0]}")
|
urls=("https://ftp.gnu.org/gnu/gcc/${pkgname}-${pkgver}/${sources[0]}")
|
||||||
md5sums=("2268420ba02dc01821960e274711bde0")
|
md5sums=("b861b092bf1af683c46a8aa2e689a6fd")
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
@@ -38,10 +38,10 @@ src_check() {
|
|||||||
pushd build > /dev/null
|
pushd build > /dev/null
|
||||||
ulimit -s -H unlimited
|
ulimit -s -H unlimited
|
||||||
sed -e '/cpython/d' -i ../gcc/testsuite/gcc.dg/plugin/plugin.exp
|
sed -e '/cpython/d' -i ../gcc/testsuite/gcc.dg/plugin/plugin.exp
|
||||||
sed -e 's/no-pic /&-no-pie /' -i ../gcc/testsuite/gcc.target/i386/pr113689-1.c
|
#sed -e 's/no-pic /&-no-pie /' -i ../gcc/testsuite/gcc.target/i386/pr113689-1.c
|
||||||
sed -e 's/300000/(1|300000)/' -i ../libgomp/testsuite/libgomp.c-c++-common/pr109062.c
|
#sed -e 's/300000/(1|300000)/' -i ../libgomp/testsuite/libgomp.c-c++-common/pr109062.c
|
||||||
sed -e 's/{ target nonpic } //' \
|
#sed -e 's/{ target nonpic } //' \
|
||||||
-e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.c
|
# -e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.c
|
||||||
|
|
||||||
chown -R leaf .
|
chown -R leaf .
|
||||||
su leaf -c "PATH=$PATH make -k check"
|
su leaf -c "PATH=$PATH make -k check"
|
||||||
@@ -53,11 +53,11 @@ src_install() {
|
|||||||
pushd build > /dev/null
|
pushd build > /dev/null
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
chown -R root:root \
|
chown -R root:root \
|
||||||
"$pkgdir"/usr/lib/gcc/$(${pkgdir}/usr/bin/gcc -dumpmachine)/14.2.0/include{,-fixed}
|
"$pkgdir"/usr/lib/gcc/$(${pkgdir}/usr/bin/gcc -dumpmachine)/${pkgver}/include{,-fixed}
|
||||||
ln -sv ../bin/cpp "$pkgdir"/usr/lib
|
ln -sv ../bin/cpp "$pkgdir"/usr/lib
|
||||||
ln -sv gcc.1 "$pkgdir"/usr/share/man/man1/cc.1
|
ln -sv gcc.1 "$pkgdir"/usr/share/man/man1/cc.1
|
||||||
install -d -v -m755 "$pkgdir/usr/lib/bfd-plugins"
|
install -d -v -m755 "$pkgdir/usr/lib/bfd-plugins"
|
||||||
ln -sfv ../../libexec/gcc/$(${pkgdir}/usr/bin/gcc -dumpmachine)/14.2.0/liblto_plugin.so \
|
ln -sfv ../../libexec/gcc/$(${pkgdir}/usr/bin/gcc -dumpmachine)/${pkgver}/liblto_plugin.so \
|
||||||
"$pkgdir"/usr/lib/bfd-plugins/
|
"$pkgdir"/usr/lib/bfd-plugins/
|
||||||
mkdir -pv "$pkgdir"/usr/share/gdb/auto-load/usr/lib
|
mkdir -pv "$pkgdir"/usr/share/gdb/auto-load/usr/lib
|
||||||
mv -v "$pkgdir"/usr/lib/*gdb.py "$pkgdir"/usr/share/gdb/auto-load/usr/lib
|
mv -v "$pkgdir"/usr/lib/*gdb.py "$pkgdir"/usr/share/gdb/auto-load/usr/lib
|
||||||
Reference in New Issue
Block a user