update to LFS 12.4 #1
@@ -1,10 +1,10 @@
|
||||
pkgname="gcc"
|
||||
pkgver="14.2.0"
|
||||
pkgver="15.2.0"
|
||||
pkgdesc="The GNU Compiler Collection"
|
||||
homepage="https://gcc.gnu.org"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/gcc/${pkgname}-${pkgver}/${sources[0]}")
|
||||
md5sums=("2268420ba02dc01821960e274711bde0")
|
||||
md5sums=("b861b092bf1af683c46a8aa2e689a6fd")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
@@ -38,10 +38,10 @@ src_check() {
|
||||
pushd build > /dev/null
|
||||
ulimit -s -H unlimited
|
||||
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/300000/(1|300000)/' -i ../libgomp/testsuite/libgomp.c-c++-common/pr109062.c
|
||||
sed -e 's/{ target nonpic } //' \
|
||||
-e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.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/{ target nonpic } //' \
|
||||
# -e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.c
|
||||
|
||||
chown -R leaf .
|
||||
su leaf -c "PATH=$PATH make -k check"
|
||||
@@ -53,11 +53,11 @@ src_install() {
|
||||
pushd build > /dev/null
|
||||
make DESTDIR="$pkgdir" install
|
||||
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 gcc.1 "$pkgdir"/usr/share/man/man1/cc.1
|
||||
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/
|
||||
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
|
||||
Reference in New Issue
Block a user