Moved libraries and C++ headers into version-specific directory
I.e. to /usr/lib/gcc/aarch64-linux-gnu/8
This commit is contained in:
parent
cb8d13f7e7
commit
e76dab8455
@ -102,6 +102,7 @@ cd ../obj_gcc
|
|||||||
--with-build-sysroot=${stagedir}%sysroot \
|
--with-build-sysroot=${stagedir}%sysroot \
|
||||||
--with-gcc-major-version-only \
|
--with-gcc-major-version-only \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
|
--enable-version-specific-runtime-libs \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--with-system-zlib
|
--with-system-zlib
|
||||||
|
|
||||||
@ -174,14 +175,22 @@ cd ../obj_glibc
|
|||||||
cd ../obj_gcc
|
cd ../obj_gcc
|
||||||
%make_install install DESTDIR=%buildroot
|
%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
|
find %buildroot
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%_libdir/gcc/%target/%gcc_branch/*
|
%_libdir/gcc/%target/%gcc_branch/*
|
||||||
%_libexecdir/gcc/%target/%gcc_branch/*
|
%_libexecdir/gcc/%target/*
|
||||||
%prefix/%target/include/c++/%gcc_branch
|
|
||||||
%prefix/%target/lib64/*
|
|
||||||
%prefix/%target/bin/*
|
%prefix/%target/bin/*
|
||||||
%prefix/%target/lib/ldscripts/*
|
%prefix/%target/lib/ldscripts/*
|
||||||
%sysroot/usr/include/*
|
%sysroot/usr/include/*
|
||||||
|
Loading…
Reference in New Issue
Block a user