OSDN Git Service

Fix compilation of crtbegin.c and pthread_debug.cpp.
authorElliott Hughes <enh@google.com>
Wed, 18 Dec 2013 04:47:06 +0000 (20:47 -0800)
committerElliott Hughes <enh@google.com>
Wed, 18 Dec 2013 17:47:44 +0000 (09:47 -0800)
commite7c59f9e2041812c597ff1c8689d47d1bfd32883
tree97d56c8132b832669676c08de6c9298b50a33a5f
parentf293b15728031432317791fb4a17a423545d37b3
Fix compilation of crtbegin.c and pthread_debug.cpp.

Because there was no default := for the aarch64 libc_crt_target_cflags,
the += was causing libc_crt_target_cflags to be recursively-defined
variable, which meant that when we were compiling crtbegin.c LOCAL_PATH
would be bionic/tests/ and we'd have -Ibionic/tests/include/ and find
none of our include files.

Also fix linking of pthread_debug.cpp, at least in the disabled mode.
The enabled mode was already broken for all architectures, and continues
to be broken after this change. It's been broken for long enough that
we might want to just remove it...

(aarch64 is using the FSF linker where arm uses the gold linker.)

Change-Id: I7db2e386694f6933db043138e6e97e5ae54d4174
libc/Android.mk
libc/bionic/pthread_debug.cpp
tests/Android.mk