diff --git a/icecream-add-lto-plugin.patch b/icecream-add-lto-plugin.patch new file mode 100644 index 0000000..2a9848a --- /dev/null +++ b/icecream-add-lto-plugin.patch @@ -0,0 +1,20 @@ +https://bugzilla.redhat.com/show_bug.cgi?id=675663 +From: David Tardon +Sent to Stephan Kulow on 2011-05-03. + +diff -up icecc-0.9.6/client/icecc-create-env.dt icecc-0.9.6/client/icecc-create-env +--- icecc-0.9.6/client/icecc-create-env.dt 2011-05-02 12:17:16.866765597 +0200 ++++ icecc-0.9.6/client/icecc-create-env 2011-05-02 12:21:25.804553075 +0200 +@@ -118,6 +118,12 @@ if test -n "$specfile" && test "$specfil + add_file "$specfile" + fi + ++plugin_name=liblto_plugin.so ++plugin=`$added_gcc -print-prog-name=$plugin_name` ++if test -n "$plugin" && test "$plugin" != "$plugin_name" && test -e "$plugin"; then ++ add_file "$plugin" "$plugin" ++fi ++ + # for ldconfig -r to work, ld.so.conf must not contain relative paths + # in include directives. Make them absolute. + tmp_ld_so_conf=`mktemp /tmp/icecc_ld_so_confXXXXXX` diff --git a/icecream.spec b/icecream.spec index e2e19f7..46e8ef2 100644 --- a/icecream.spec +++ b/icecream.spec @@ -7,7 +7,7 @@ Name: icecream Version: 0.9.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Distributed compiler Group: Development/Tools @@ -25,6 +25,7 @@ Source7: initscript-scheduler Source8: %{name}-manpages.tar.bz2 Patch0: %{name}-rename-scheduler.patch Patch1: %{name}-cleanup-conffile.patch +Patch2: %{name}-add-lto-plugin.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -72,6 +73,7 @@ This package contains development files for %{name}. %setup -q -a 8 -n icecc-%{version} %patch0 -p1 %patch1 -p0 +%patch2 -p1 sed -e 's|@LIBDIR@|%{_libdir}|g' %{SOURCE1} > icecream.sh sed -e 's|@LIBDIR@|%{_libdir}|g' %{SOURCE2} > icecream.csh mkdir SELinux @@ -266,6 +268,10 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/icecc.pc %changelog +* Tue May 03 2011 Michal Schmidt - 0.9.6-4 +- Add lto plugin for -fuse-linker-plugin (patch from dtardon) +- Fixes: BZ#675663 + * Wed Feb 09 2011 Fedora Release Engineering - 0.9.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild