Avoid build failure due to inappropriate checks

Recently yet another post-build check has been added:

/usr/bin/strip: Unable to recognise the format of the input file `./usr/lib/aarch64-linux-gnu/sys-root/usr/lib64/libc.a(getutxid.o)'

which (unsurpisingly) broke the build.
Tell strip to ignore the foreign libraries.
This commit is contained in:
Alexey Sheplyakov 2021-08-31 16:13:17 +04:00
parent c0cfb9ca59
commit b993013466

View File

@ -298,6 +298,7 @@ find %buildroot%prefix/lib/gcc/%target/%gcc_branch -type f -name 'lib*-gdb.py' -
install -d -m 755 %buildroot%sysroot/usr/lib
# Leave alone $target libraries
%brp_strip_none %sysroot/* %prefix/lib/gcc/%target/%gcc_branch/*.a %prefix/lib/gcc/%target/%gcc_branch/*.o
%add_verify_elf_skiplist %sysroot/* %prefix/lib/gcc/%target/%gcc_branch/*
%add_findreq_skiplist %sysroot/* %prefix/lib/gcc/%target/%gcc_branch/*
%add_findprov_skiplist %sysroot/* %prefix/lib/gcc/%target/%gcc_branch/*