Skip to content
  • QBS, how to remove -fPIC option

    Solved Qt Creator and other tools qbs gcc fpic pic
    2
    0 Votes
    2 Posts
    3k Views
    B
    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.