mirror of
https://abf.rosa.ru/djam/glibc.git
synced 2025-02-23 23:12:48 +00:00
Don't strip debug symbols from x86_64 libm.a - it's a gnu ld script
This commit is contained in:
parent
17c8013877
commit
4edc92ba70
1 changed files with 12 additions and 3 deletions
15
glibc.spec
15
glibc.spec
|
@ -1123,9 +1123,18 @@ touch %{buildroot}%{_sysconfdir}/ld.so.cache
|
||||||
# Strip debugging info from all static libraries
|
# Strip debugging info from all static libraries
|
||||||
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
|
||||||
fi
|
%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
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue