title: Android NDK compilation without sysroot
body: <p>I am trying to compile the source code for multiple architectures and multiple API levels of Android NDK based on the compilation flags (by dynamically passing path of Application.mk to the ndk-build command). It was going fine till r12. Now I was trying to update my build system to latest NDK r15c and found that it's taking headers from "android-ndk/sysroot/..." path instead of depending on the APP_PLATFORM flag from Application.mk file</p>
  
  <pre><code>APP_PLATFORM                   := android-19
  </code></pre>
  
  <p><strong><em>Logs for r12b NDK:</em></strong></p>
  
  <pre><code>-I/data/android/android-ndk-r10d/platforms/android-19/arch-arm/usr/include
  </code></pre>
  
  <p>Above include path is present when I try verbose logs for ndk-build (V=1) .</p>
  
  <p><strong><em>Logs for r15c NDK:</em></strong></p>
  
  <pre><code>--sysroot
  /home/airwatch/Android/android-ndk/sysroot
  -isystem
  /home/airwatch/Android/android-ndk/sysroot/usr/include/arm-linux-androideabi
  </code></pre>
  
  <p>Above include path is present when I try verbose logs for r15c NDK.</p>
  
  <p>It will not be possible to configure <a href="https://developer.android.com/ndk/guides/standalone_toolchain.html" rel="nofollow noreferrer">Standalone Toolchain</a> due to my project requirements. Is there anyway to get rid of this sysroot?</p>