mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-29 01:09:20 +08:00
Install to --libdir=%{_prefix}/lib instead of %{_libdir}
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
--bindir=%{_bindir} \
|
||||
--exec_prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_libdir} \
|
||||
--libdir=%{_gcclibdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
|
||||
@@ -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@
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user