More libiberty tweaks

This commit is contained in:
Ralf Corsepius
2009-08-27 05:21:30 +00:00
parent 27e77c934d
commit dfe5b24b26

View File

@@ -24,11 +24,12 @@
%endif %endif
# host library # host library
%if "%{gcc_version}" >= "4.3.0" %if "%{gcc_version}" >= "4.2.0"
# libiberty doesn't honor --libdir, but always installs to _libdir # libiberty doesn't honor --libdir, but always installs to a
# magically guessed _libdir
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
%else %else
# libiberty install to --libdir=... # libiberty installs to --libdir=...
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
%endif %endif