Moved libraries and C++ headers into version-specific directory

I.e. to /usr/lib/gcc/aarch64-linux-gnu/8
This commit is contained in:
Alexey Sheplyakov 2021-06-09 07:01:27 +00:00
parent cb8d13f7e7
commit e76dab8455

View File

@ -102,6 +102,7 @@ cd ../obj_gcc
--with-build-sysroot=${stagedir}%sysroot \
--with-gcc-major-version-only \
--enable-languages=c,c++ \
--enable-version-specific-runtime-libs \
--disable-nls \
--with-system-zlib
@ -174,14 +175,22 @@ cd ../obj_glibc
cd ../obj_gcc
%make_install install DESTDIR=%buildroot
rm -rf %buildroot%sysroot/etc
rm -rf %buildroot%sysroot/var
rm -rf %buildroot%sysroot/sbin
rm -rf %buildroot%sysroot/usr/share
rm -rf %buildroot%sysroot/usr/bin
rm -rf %buildroot%sysroot/usr/sbin
rm -rf %buildroot%sysroot/usr/libexec
rm -rf %buildroot%sysroot/usr/lib64/audit
rm -rf %buildroot%sysroot/usr/lib64/gconv
find %buildroot
%files
%_bindir/*
%_libdir/gcc/%target/%gcc_branch/*
%_libexecdir/gcc/%target/%gcc_branch/*
%prefix/%target/include/c++/%gcc_branch
%prefix/%target/lib64/*
%_libexecdir/gcc/%target/*
%prefix/%target/bin/*
%prefix/%target/lib/ldscripts/*
%sysroot/usr/include/*