"Error: requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC"

“Error: requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC”

When trying to build my project for Android, I’m getting the above error.

Compiling with params:

" -mthumb-interwork"
" -funwind-tables"
" -fstack-protector"
" -mlong-calls"
" -fno-strict-aliasing"
" -fPIC"
" -fno-exceptions"
" -fno-rtti"
" -fno-short-enums"
" -finline-limit=64"
" -Werror"
" -Wno-psabi"
" -march=armv7-a"
" -mfloat-abi=softfp"
" -mfpu=vfp"
" -fomit-frame-pointer"
" -Os"
" -O2"
" -ffunction-sections"
" -nostdlib"
" -Wl,-shared,-Bsymbolic"
" -Wl,–no-undefined"
" -Wl,–fix-cortex-a8"
" -fno-rtti"

Does anyone have any insight as to what might be causing this error and possible solutions to fix it? If you need any more info to help deduce the problem, please let me know.