Skip to content

Commit

Permalink
feat: add -lpthread to force static linking of libpthread
Browse files Browse the repository at this point in the history
  • Loading branch information
nenkoru committed Aug 17, 2024
1 parent 8d4ec68 commit fca8b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"name": "ci-linux-static",
"description": "preset to link executable against static libs",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS": "-static",
"CMAKE_EXE_LINKER_FLAGS": "-static -lpthread",
"BUILD_SHARED_LIBS": "OFF",
"ZLIB_USE_STATIC_LIBS": "ON",
"CMAKE_FIND_LIBRARY_SUFFIXES": ".a"
Expand Down

0 comments on commit fca8b44

Please sign in to comment.