gcc-latest: Create versioned path for libraries
This commit is contained in:
parent
61d38b018d
commit
b1b861e1e2
@ -129,7 +129,7 @@ fi
|
||||
--enable-threads=posix \
|
||||
--enable-checking=release \
|
||||
--with-system-zlib \
|
||||
--enable-libstdcxx-dual-abi \
|
||||
--disable-libquadmath-support \
|
||||
--with-default-libstdcxx-abi=new \
|
||||
--disable-libstdcxx-pch \
|
||||
--disable-libunwind-exceptions \
|
||||
@ -140,13 +140,12 @@ fi
|
||||
--enable-lto \
|
||||
--disable-install-libiberty \
|
||||
--disable-werror \
|
||||
--with-gnu-ld \
|
||||
--with-gcc-major-version-only \
|
||||
--with-isl \
|
||||
--verbose \
|
||||
--program-suffix=-12 \
|
||||
--with-arch-directory=$LIB_ARCH \
|
||||
--disable-gtktest \
|
||||
--enable-clocale=gnu \
|
||||
--program-suffix=-12 \
|
||||
$GCC_ARCHOPTS \
|
||||
--target=${TARGET} \
|
||||
--build=${TARGET} \
|
||||
@ -155,22 +154,15 @@ fi
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
rm $PKG/usr/lib${LIBDIRSUFFIX}/*.{la,o,a,spec} \
|
||||
$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
|
||||
rm $PKG/usr/lib${LIBDIRSUFFIX}/*.la
|
||||
|
||||
# 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
|
||||
|
||||
mv $PKG/usr/lib$LIBDIRSUFFIX/*-gdb.py \
|
||||
$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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user