1078 |
# If we are building a debug package then copy all of the static archives |
# If we are building a debug package then copy all of the static archives |
1079 |
# into the debug directory to keep them as unstripped copies. |
# into the debug directory to keep them as unstripped copies. |
1080 |
%if %{build_debug} |
%if %{build_debug} |
1081 |
mkdir -p %{glibc_sysroot}%{_prefix}/lib/debug%{_libdir} |
mkdir -p %{buildroot}%{_prefix}/lib/debug%{_libdir} |
1082 |
cp -a %{glibc_sysroot}%{_libdir}/*.a \ |
cp -a %{buildroot}%{_libdir}/*.a \ |
1083 |
%{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}/ |
%{buildroot}%{_prefix}/lib/debug%{_libdir}/ |
1084 |
rm -f %{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}/*_p.a |
rm -f %{buildroot}%{_prefix}/lib/debug%{_libdir}/*_p.a |
1085 |
%endif |
%endif |
1086 |
# Strip all of the installed object files. |
# Strip all of the installed object files. |
1087 |
strip -g %{buildroot}%{_libdir}/*.o |
strip -g %{buildroot}%{_libdir}/*.o |
1093 |
list_debug_archives() |
list_debug_archives() |
1094 |
{ |
{ |
1095 |
local dir=%{_prefix}/lib/debug%{_libdir} |
local dir=%{_prefix}/lib/debug%{_libdir} |
1096 |
find %{glibc_sysroot}$dir -name "*.a" -printf "$dir/%%P\n" |
find %{buildroot}$dir -name "*.a" -printf "$dir/%%P\n" |
1097 |
} |
} |
1098 |
|
|
1099 |
# Remove some common directories from the common package debuginfo so that we |
# Remove some common directories from the common package debuginfo so that we |