Blob Blame History Raw
diff -up vinagre-2.30.1/vinagre/Makefile.am.libs vinagre-2.30.1/vinagre/Makefile.am
--- vinagre-2.30.1/vinagre/Makefile.am.libs	2010-06-19 22:21:01.962179448 -0400
+++ vinagre-2.30.1/vinagre/Makefile.am	2010-06-19 22:20:00.708166738 -0400
@@ -135,7 +135,7 @@ vinagre_LDADD = \
 	$(GTKVNC_LIBS)		\
 	$(NULL)
 
-vinagre_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*"
+vinagre_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*" -Wl,-O1,--as-needed
 
 if APPLET
 
@@ -210,7 +210,7 @@ vinagre_applet_LDADD =			\
 	$(VINAGRE_LIBS)			\
 	$(AVAHI_LIBS)			\
 	$(NULL)
-vinagre_applet_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*"
+vinagre_applet_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*" -Wl,-O1,--as-needed
 
 endif