Don't strip debug symbols from x86_64 libm.a - it's a gnu ld script

This commit is contained in:
Andrey Bondrov 2019-04-13 18:52:08 +10:00
parent 17c8013877
commit 4edc92ba70

View file

@ -1124,7 +1124,16 @@ touch %{buildroot}%{_sysconfdir}/ld.so.cache
pushd %{buildroot}%{_libdir} pushd %{buildroot}%{_libdir}
for i in *.a; do for i in *.a; do
if [ -f "$i" ]; then if [ -f "$i" ]; then
strip -g -R .comment -R .GCC.command.line $i case "$i" in
%ifarch x86_64
# libm.a is a gnu ld script for glibc 2.28
%if "%{version}" == "2.28"
libm.a) ;;
%endif
%endif
*_p.a) ;;
*) strip -g -R .comment -R .GCC.command.line $i;;
esac
fi fi
done done
popd popd