title: How to Cross Compile Library Using Standalone NDK toolchain
body: <p>So I am trying to cross compile Box2D using the source and I would like to compile for Android on my Mac. I can run...</p>
  
  <blockquote>
    <p>../box2d-read-only/Box2D/Build/gmake$ make</p>
  </blockquote>
  
  <p>And this works fine, now how do I update the GCC version I am using to that of the ARM processor. I tried the following...</p>
  
  <blockquote>
    <p>make CC="/tmp/my-toolchain/bin/arm-linux-androideabi-gcc"</p>
  </blockquote>
  
  <p>This seems to work, but is it really? I am new to gcc and I have a hunch it is using the Mac x86 (or whatever) gcc. Is there a good way to test if it is compiled for the proper arch?</p>