Skip to content

Commit

Permalink
package linux sysroot with different version of GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Sep 3, 2024
1 parent 324c0f0 commit dc2b1b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sysroot/prune_gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ rm -rf /var/buildlibs/gcc/share

if [ "$ARCH" == 'x86_64' ]; then
mv /var/buildlibs/gcc/lib/gcc/${ARCH}-linux /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu
mv /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/11.4.0 /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/11
mv /var/buildlibs/gcc/include/c++/11.4.0 /var/buildlibs/gcc/include/c++/11
mv /var/buildlibs/gcc/include/c++/11/${ARCH}-linux /var/buildlibs/gcc/include/c++/11/${ARCH}-linux-gnu
mv /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/10.3.0 /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/10
mv /var/buildlibs/gcc/include/c++/10.3.0 /var/buildlibs/gcc/include/c++/10
mv /var/buildlibs/gcc/include/c++/10/${ARCH}-linux /var/buildlibs/gcc/include/c++/10/${ARCH}-linux-gnu
elif [ "$ARCH" == 'aarch64' ]; then
mv /var/buildlibs/gcc/lib/gcc/${ARCH}-linux /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu
mv /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/11.4.0 /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/11
mv /var/buildlibs/gcc/${ARCH}-linux/include/c++/11.4.0 /var/buildlibs/gcc/${ARCH}-linux/include/c++/11
mv /var/buildlibs/gcc/${ARCH}-linux/include/c++/11/${ARCH}-linux /var/buildlibs/gcc/${ARCH}-linux/include/c++/11/${ARCH}-linux-gnu
mv /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/10.3.0 /var/buildlibs/gcc/lib/gcc/${ARCH}-linux-gnu/10
mv /var/buildlibs/gcc/${ARCH}-linux/include/c++/10.3.0 /var/buildlibs/gcc/${ARCH}-linux/include/c++/10
mv /var/buildlibs/gcc/${ARCH}-linux/include/c++/10/${ARCH}-linux /var/buildlibs/gcc/${ARCH}-linux/include/c++/10/${ARCH}-linux-gnu
mv /var/buildlibs/gcc/${ARCH}-linux/include/c++ /var/buildlibs/gcc/include/c++
mv /var/buildlibs/gcc/${ARCH}-linux/lib64/* /var/buildlibs/gcc/lib64/
rm -r /var/buildlibs/gcc/${ARCH}-linux
Expand Down

0 comments on commit dc2b1b2

Please sign in to comment.