Search code examples
androidandroid-ndkandroid-source

How to see the actual gcc options when building Android from 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?


Solution

  • The showcommands make target will display the gcc/g++ command line:

    $ make showcommands
    

    More info and other Android.mk build nuggets here: http://elinux.org/Android_Build_System

    If you are building with mm:

    $ mm showcommands