I am trying to cross-compile a very basic program:
int main() {
;
return 0;
}
I am able to do so linking libiberty.a and libgcc.a from ndk-5,
ndk-5b, ndk-5c, ndk-6, and ndk-6b.
For example, here is a verbose output of cross-compiling this simple
application using ndk-6b:
http://pastebin.com/1HYxUz1V
Now, I use the same platform and try to build with ndk-7b:
http://pastebin.com/d2h5T3zf
When using ndk-7 or ndk-7b I get the error shown at the end of that
output:
/tmp/ccit4zbf.o:(.ARM.exidx.text.main+0x0): undefined reference to
`__aeabi_unwind_cpp_pr0'
I am changing absolutely nothing about the build process, just
changing the NDK that is being used. Did something change in NDK 7 to
cause this? Do I need some sort of new compiler or linker flag?