OSDN Git Service

Fix whole static lib handling of duplicate names.
authorChristopher Ferris <cferris@google.com>
Thu, 8 Jan 2015 01:14:03 +0000 (17:14 -0800)
committerChristopher Ferris <cferris@google.com>
Thu, 8 Jan 2015 02:19:54 +0000 (18:19 -0800)
commit44203f3316e3ba574555c75d65176df7f22417da
tree65a4551a7caa72ffbbc6bf419811e480fb2a972d
parentaa112716067167d58d1db37aaf8adc49b83b59a1
Fix whole static lib handling of duplicate names.

If LOCAL_WHOLE_STATIC_LIBRARIES contains a library that has
two files that have the same name but are in different
directories, only the first gets included.

This fix detects this case, and uses the m option to ar to force the
duplicate object to the end of the archive. After this, using the p
option gets the correct object file.

Change-Id: I2e183f48cef3c79499d4ab8ff147444611ff938b
core/definitions.mk