How to see the actual gcc options when building Android from source?

hopia picture hopia · Apr 9, 2011 · Viewed 12.4k times · Source

I'm trying to debug my android source build environment (Android.mk files). By default the make system does not show the gcc command line during the build process. What is the best way to enable this?

Answer

Jerry F picture Jerry F · Dec 31, 2013

Probably too late for the asker, but for anyone else who comes along. From the ndk documentation @ https://docs.google.com/document/d/1jXxLV866aY9QXWS_9UwLSJjX1I6d1XfBhk1IeEyRgYE/edit?pli=1

ndk-build NDK_DEBUG=1 --> generate debuggable native code.

ndk-build V=1 --> launch build, displaying build commands.

ndk-build -B --> force a complete rebuild.

ndk-build -B V=1 --> force a complete rebuild and display build commands.