build: sort objects to remove duplicates for link
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 25 Aug 2011 08:18:52 +0000 (09:18 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 1 Sep 2011 18:12:51 +0000 (13:12 -0500)
commitc6ae76bad33ce0958967126c0fde847d35d4c7d9
tree4f58a2193d330d159410d20d5c04587430b3accc
parent63159d78e21b9634ceab693114911f2e04c3a2cc
build: sort objects to remove duplicates for link

Avoid duplicate object files during the link.  There are legitimate
cases where a link command-line would include duplicate object files
because two independent subsystems both depend on common infrastructure.

Use GNU make's $(sort) function to remove duplicate object files from
the link command-line.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
rules.mak