错误信息如下,在生成动态库时出现了这个错误,没啥头绪,有经验的坛友可以提提想法。
//------------------
[armeabi] StaticLibrary : libpixman.a
[armeabi] SharedLibrary : libcaiman.so
/home/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi/libcairo.a(cairo-traps-compositor.o): requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC
------解决方案--------------------
requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC
不支持动态 reloc R_ARM_REL32.
编译加一个参数 -fPIC