mirror of
https://abf.rosa.ru/djam/glibc40.git
synced 2025-02-24 00:02:53 +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
|
||||
pushd %{buildroot}%{_libdir}
|
||||
for i in *.a; do
|
||||
if [ -f "$i" ]; then
|
||||
strip -g -R .comment -R .GCC.command.line $i
|
||||
fi
|
||||
if [ -f "$i" ]; then
|
||||
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
|
||||
done
|
||||
popd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue