Skip to content

Position independent code #644

Closed
@kjelljorner

Description

@kjelljorner

I came across an issue with statically linking stdlib as a dependency for a shared library target. In the end, I solved it by setting the POSITION_INDEPENDENT_CODE property for the fortran_stdlib target:

set_target_properties(fortran_stdlib PROPERTIES POSITION_INDEPENDENT_CODE ON)

One idea would be to always set this property, but as I understand this could also lead to performance issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    build: cmakeIssue with stdlib's CMake build files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions