how to create fPIC library

I compiled a library with the option -fPIC, And add the option in Misc controls.
Output error when build:
test.c: error: C3900U: Unrecognized option '-fPIC'.

More questions in this forum