diff --git a/nautilus.spec b/nautilus.spec index dda1d23..c259243 100644 --- a/nautilus.spec +++ b/nautilus.spec @@ -134,6 +134,8 @@ autoreconf -i -f CFLAGS="$RPM_OPT_FLAGS -g -DUGLY_HACK_TO_DETECT_KDE -DNAUTILUS_OMIT_SELF_CHECK" %configure --disable-more-warnings --disable-update-mimedb +# drop unneeded direct library deps with --as-needed +# libtool doesn't make this easy, so we do it the hard way sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool export tagname=CC