I have the following in my configure script...
ANDROID_ROOT="$HOME/Development/Android/android-ndk-r8c" \
....
CPPFLAGS="-I$ANDROID_ROOT/platforms/android-14/arch-arm/usr/include" \
And if I ls that folder ($ANDROID_ROOT/platforms/android-14/arch-arm/usr/include) I see the sys folder and under that I see cdefs.h, however, when I run my configure I see....
Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include-fixed/stdio.h:50:23: fatal error: sys/cdefs.h: No such file or directory
So this doesn't seem to make sense, I am in fact including the header. Any idea what I am missing here?
Update
I also tried creating a standalone toolchain and changing to...
ANDROID_ROOT="$HOME/toolchain" \
...
CPPFLAGS="-I$ANDROID_ROOT/sysroot/usr/include" \
LDFLAGS="-L$ANDROID_ROOT/sysroot/usr/lib" \
But no dice....