From a50b092984c437bef301e0cecf604f5a001502c9 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 18 Mar 2010 07:21:50 +0000 Subject: [PATCH] Preps for gcc-4.5 --- contrib/crossrpms/gcc/target-gcc.add | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/crossrpms/gcc/target-gcc.add b/contrib/crossrpms/gcc/target-gcc.add index 831c319b18..ad6117596d 100644 --- a/contrib/crossrpms/gcc/target-gcc.add +++ b/contrib/crossrpms/gcc/target-gcc.add @@ -54,7 +54,10 @@ libgcc @tool_target@-gcc. %dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version} %{_libexecdir}/gcc/@tool_target@/%{gcc_version}/cc1%{_exeext} %{_libexecdir}/gcc/@tool_target@/%{gcc_version}/collect2%{_exeext} - +%if "%{gcc_version}" >= "4.5.0" +%{?with_lto:%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/lto%{_exeext}} +%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/lto-wrapper%{_exeext} +%endif %files -n @rpmprefix@@tool_target@-gcc-libgcc -f build/files.gcc %defattr(-,root,root)