-
Notifications
You must be signed in to change notification settings - Fork 197
Closed
Labels
build: cmakeIssue with stdlib's CMake build filesIssue with stdlib's CMake build files
Description
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
Labels
build: cmakeIssue with stdlib's CMake build filesIssue with stdlib's CMake build files