intel: common: Fix link failure with standalone Android build
authorTomasz Figa <tfiga@chromium.org>
Wed, 5 Jul 2017 14:54:18 +0000 (23:54 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 5 Jul 2017 17:49:21 +0000 (18:49 +0100)
commit50a8a7377ae071d5b4b927e9055a7ec8391acc59
tree82449e005da1f9ae71d8f0aa9851bcc025fb9b72
parentb7ee56b5991e02bf4bff4ca702182bf37e59aa07
intel: common: Fix link failure with standalone Android build

Some reshuffle in the Makefiles under src/intel resulted in Android
libraries being no longer linked with code using
src/intel/common/gen_debug.h that contains references to functions
exported by those libraries (namely ALOGW macro, which is currently
resolved into a call to __android_log_print() from cutils).

Fix the build by taking into account ANDROID_CFLAGS and ANDROID_LIBS for
affected module on Android NDK builds.

Fixes: d5b355ce5fd ("i965: Move intel_debug.h to intel/common/gen_debug.h")
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/Makefile.common.am