Prevent ndk-build from automatically cleaning module

寵の児 提交于 2019-12-01 02:09:29

问题


On my current setup (ndk r8c) ndk-build performs a clean step (V=1 shows rm in action) without issuing clean explicitly. I'd like to change this behavior - I'm currently having linking problems and (re-)compilation takes more than 5 minutes. How can I do this?


回答1:


I suppose you are fasing a bug of NDK r8c. See this thread: http://code.google.com/p/android/issues/detail?id=39810. You can downgrade to a previous NDK release or apply the suggested patch.

The patch is to change a single line 289 in build/core/definitions.mk from

$1: $$(__ndk_file_dir)

to

$1: | $$(__ndk_file_dir)


来源:https://stackoverflow.com/questions/13788824/prevent-ndk-build-from-automatically-cleaning-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!