OSDN Git Service

Contain obj of ../ source files in their intermediate dir.
authorYing Wang <wangying@google.com>
Wed, 11 Mar 2015 01:03:11 +0000 (18:03 -0700)
committerYing Wang <wangying@google.com>
Wed, 11 Mar 2015 02:05:15 +0000 (19:05 -0700)
commitfb22a42d4fdd84de92114c65ec901088cf5cb966
tree61554241c3ab52a73215bd2034c1cdcdaadf22f3
parent708b56edc879847f418108cf360bc990bb2a502a
Contain obj of ../ source files in their intermediate dir.

Previously when a file in LOCAL_SRC_FILES starts with "../", the object
file may escape out of the module's intermediate directory, because we
insert the source file's path (but not with LOCAL_PATH) to the object
file's path. Even worse when two object files escape to the same destination
and cause conflict.
This change fixes the issue by removing the "../" inside the object
files' paths. To do that, we have to set up the compilation rules for
those files one by one, instead of using the one-for-all static
pattern rules.

Bug: 19641115
Change-Id: I19f3c48ece3244fa14acb2caa609deea710840d3
core/binary.mk
core/definitions.mk