I am trying to debug my original Android build environment (Android.mk files). By default, make does not show the gcc command line during the build process. What is the best way to do this?
The showcommands commands display the gcc / g ++ command line:
$ make showcommands
More information and other Android.mk kits here: http://elinux.org/Android_Build_System
Perhaps too late for the seeker, but for all who come. From the documentation ndk @ https://docs.google.com/document/d/1jXxLV866aY9QXWS_9UwLSJjX1I6d1XfBhk1IeEyRgYE/edit?pli=1
ndk-build NDK_DEBUG = 1 → generate debugged code.
ndk-build V = 1 -> run assembly by displaying build commands.
ndk-build -B -> force recovery to complete.
ndk-build -BV = 1 -> force the build and build of the command.
I found very detailed documentation at this link: http://hashspeaks.wordpress.com/2010/01/27/android-mk-documentation/
so you can add -v -Wall to LOCAL_CPPFLAGS