[SOLVED] How to export model library to so file instead of tar for armv7 on x86 box

What float-abi and fpu should be used for Raspberry Pi ARMv7l? I tried [“-mfloat-abi=hard”,“-mfpu=vfp”] - “so” file generation fails.