rmdir ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits

This commit is contained in:
Ralf Corsepius
2009-03-29 03:26:22 +00:00
parent 2649eef33a
commit 0539334d8f

View File

@@ -63,6 +63,13 @@
rm -rf ${RPM_BUILD_ROOT}%{gccexec}/@tool_target@/%{gcc_version}/install-tools
%endif
%if %build_cxx
# Bug in gcc > 4.1.0: Installs an unused, empty directory
if test -d ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits; then
rmdir ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits
fi
%endif
# Collect multilib subdirectories
f=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`