From: Paolo Bonzini Date: Mon, 16 Jun 2014 14:43:25 +0000 (+0200) Subject: rules.mak: remove $(sort) from extract-libs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f27701510cdce9f76cdad0aaf9fb0bbcb23d299a;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git rules.mak: remove $(sort) from extract-libs Duplicate removal was added to extract-libs in order to avoid including the same library multiple times into the linking command line; this could potentially happen when using "foo.mo-libs" (which adds the library to all components, causing it to appear N times if the module is composed of N objects). However, sorting and removing duplicates causes problems with static linking, and also with space-separated linker options as found in some Mac OS X packaging systems. Furthermore, the "optimization" is really a non-problem since we do not expect .mo modules to be composed of many files. Reported-by: Sean Bruno Tested-by: Sean Bruno Reviewed-by: Fam Zheng Signed-off-by: Paolo Bonzini Message-id: 1402929805-16836-1-git-send-email-pbonzini@redhat.com Signed-off-by: Peter Maydell --- diff --git a/rules.mak b/rules.mak index dde8e0098..945484ecb 100644 --- a/rules.mak +++ b/rules.mak @@ -22,7 +22,7 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d # Same as -I$(SRC_PATH) -I., but for the nested source/object directories QEMU_INCLUDES += -I$(