From 908ac01ef922c83adcfa275520f53665c3127681 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 16 Dec 2008 07:17:25 +0000 Subject: [PATCH] add a comment --- nautilus.spec | 2 ++ 1 file changed, 2 insertions(+) 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