I've found the response.
There is a positionIndependentCode property in the cpp module.
So on can remove -fPIC by adding cpp.positionIndependentCode: false.

This property is supposed to be undefined by default, but it seems to resolve to true for my toolchain.