Skip to content

Commit

Permalink
Build with Position Independent Code unconditionally
Browse files Browse the repository at this point in the history
To avoid linking errors, build libcmark-gfm with Position Independent
Code unconditionally.

Related: swiftlang/swift#75216
  • Loading branch information
bc-lee committed Jul 12, 2024
1 parent 2c47322 commit 936f6fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set_target_properties(libcmark-gfm-extensions PROPERTIES
MACOSX_RPATH TRUE
OUTPUT_NAME cmark-gfm-extensions
PDB_NAME libcmark-gfm-extensions
POSITION_INDEPENDENT_CODE YES
SOVERSION ${PROJECT_VERSION}
VERSION ${PROJECT_VERSION})

Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ set_target_properties(libcmark-gfm PROPERTIES
MACOSX_RPATH TRUE
OUTPUT_NAME cmark-gfm
PDB_NAME libcmark-gfm
POSITION_INDEPENDENT_CODE YES
SOVERSION ${PROJECT_VERSION}
VERSION ${PROJECT_VERSION})

Expand Down

0 comments on commit 936f6fd

Please sign in to comment.