
 Add -Wl,--as-needed before WXCONFIG_LD to drop unnecessary dependencies.

   -- Chris Lamb <lamby@debian.org>  Sun, 02 Aug 2009 01:29:09 +0100

--- sffview-0.4.orig/Makefile
+++ sffview-0.4/Makefile
@@ -58,7 +58,7 @@
 all:    $(PROGRAM)
 
 $(PROGRAM):	$(OBJECTS)
-	$(CC) -o $(PROGRAM) $(OBJECTS) $(WXCONFIG_LD)
+	$(CC) -o $(PROGRAM) $(OBJECTS) -Wl,--as-needed $(WXCONFIG_LD)
 
 clean: 
 	rm -f *.o $(PROGRAM)

