https://bugzilla.redhat.com/show_bug.cgi?id=675663 From: David Tardon <dtardon@redhat.com> 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`