Install to --libdir=%{_prefix}/lib instead of %{_libdir}

This commit is contained in:
Ralf Corsepius
2009-08-27 03:40:26 +00:00
parent 3f8272d613
commit 5ec10091d3
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
--bindir=%{_bindir} \
--exec_prefix=%{_exec_prefix} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--libdir=%{_gcclibdir} \
--libexecdir=%{_libexecdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
+1 -1
View File
@@ -120,7 +120,7 @@ BuildRequires: gcc-gnat
BuildRequires: @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
%endif
%define gcclib %{_libdir}/gcc
%define _gcclibdir %{_prefix}/lib
@SOURCES@
+7 -1
View File
@@ -24,7 +24,13 @@
%endif
# host library
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
%if "%{gcc_version}" >= "4.3.0"
# libiberty doesn't honor --libdir, but always installs to _libdir
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
%else
# libiberty install to --libdir=...
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
%endif
# We use the version from binutils
rm -f $RPM_BUILD_ROOT%{_bindir}/@tool_target@-c++filt%{_exeext}