[patch][RESEND] libunarchive strip duplicate object files

Bernhard Fischer rep.nop at aon.at
Tue Sep 13 22:10:27 UTC 2005


Hi,

Attached patch does

strip duplicate obj-files from the archive.
This does not affect static libraries but will avoid trouble when
building libunarchive as part of a dynamic lib.

Tested. Please apply,
Bernhard
-------------- next part --------------
Index: archival/libunarchive/Makefile.in
===================================================================
--- archival/libunarchive/Makefile.in	(revision 11446)
+++ archival/libunarchive/Makefile.in	(working copy)
@@ -76,6 +76,7 @@
 
 libraries-y+=$(LIBUNARCHIVE_DIR)$(LIBUNARCHIVE_AR)
 
+LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y))
 $(LIBUNARCHIVE_DIR)$(LIBUNARCHIVE_AR): $(patsubst %,$(LIBUNARCHIVE_DIR)%, $(LIBUNARCHIVE-y))
 	$(AR) $(ARFLAGS) $@ $(patsubst %,$(LIBUNARCHIVE_DIR)%, $(LIBUNARCHIVE-y))
 


More information about the busybox mailing list