ref: 0f4499121a35ff33a5c733919366134c0e0cbb0b
parent: e138ee5297bb85ad579f879fd5264981428c1e73
parent: 16a4066e7fce2b1f69314f6f6844f694313ed038
author: zhilwang <zhilwang@cisco.com>
date: Fri Jun 27 06:07:31 EDT 2014
Merge pull request #1019 from mstorsjo/android-build-deps Generate dependencies while building for android
--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -35,7 +35,7 @@
CXX = $(TOOLCHAINPREFIX)g++
CC = $(TOOLCHAINPREFIX)gcc
AR = $(TOOLCHAINPREFIX)ar
-CFLAGS += -DANDROID_NDK -fpic --sysroot=$(SYSROOT)
+CFLAGS += -DANDROID_NDK -fpic --sysroot=$(SYSROOT) -MMD -MP
CXXFLAGS += -fno-rtti -fno-exceptions
LDFLAGS += --sysroot=$(SYSROOT)
SHLDFLAGS = -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,lib$(PROJECT_NAME).so