gcc-latest: Create versioned path for libraries

This commit is contained in:
Eugen Wissner 2022-06-04 11:01:03 +02:00
parent 61d38b018d
commit b1b861e1e2
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0

View File

@ -129,7 +129,7 @@ fi
--enable-threads=posix \ --enable-threads=posix \
--enable-checking=release \ --enable-checking=release \
--with-system-zlib \ --with-system-zlib \
--enable-libstdcxx-dual-abi \ --disable-libquadmath-support \
--with-default-libstdcxx-abi=new \ --with-default-libstdcxx-abi=new \
--disable-libstdcxx-pch \ --disable-libstdcxx-pch \
--disable-libunwind-exceptions \ --disable-libunwind-exceptions \
@ -140,13 +140,12 @@ fi
--enable-lto \ --enable-lto \
--disable-install-libiberty \ --disable-install-libiberty \
--disable-werror \ --disable-werror \
--with-gnu-ld \ --with-gcc-major-version-only \
--with-isl \ --with-isl \
--verbose \ --program-suffix=-12 \
--with-arch-directory=$LIB_ARCH \ --with-arch-directory=$LIB_ARCH \
--disable-gtktest \ --disable-gtktest \
--enable-clocale=gnu \ --enable-clocale=gnu \
--program-suffix=-12 \
$GCC_ARCHOPTS \ $GCC_ARCHOPTS \
--target=${TARGET} \ --target=${TARGET} \
--build=${TARGET} \ --build=${TARGET} \
@ -155,22 +154,15 @@ fi
make make
make install-strip DESTDIR=$PKG make install-strip DESTDIR=$PKG
rm $PKG/usr/lib${LIBDIRSUFFIX}/*.{la,o,a,spec} \ rm $PKG/usr/lib${LIBDIRSUFFIX}/*.la
$PKG/usr/lib${LIBDIRSUFFIX}/libgcc_s.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libatomic.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libcc1.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libgomp.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libitm.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/liblsan.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libquadmath.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libubsan.so* \
$PKG/usr/lib${LIBDIRSUFFIX}/libstdc++.so \
$PKG/usr/lib${LIBDIRSUFFIX}/libstdc++.so.6
# Move gdb pretty printers to the correct place mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/gcc-12
mkdir -p $PKG/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX mkdir -p $PKG/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX
mv $PKG/usr/lib$LIBDIRSUFFIX/*-gdb.py \ mv $PKG/usr/lib$LIBDIRSUFFIX/*-gdb.py \
$PKG/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX/ $PKG/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX/
mv $PKG/usr/lib${LIBDIRSUFFIX}/*.{a,o,spec,so*} \
$PKG/usr/lib${LIBDIRSUFFIX}/gcc-12
cd ../gcc-$VERSION cd ../gcc-$VERSION