Skip to content

Commit

Permalink
Fixed linker error on FreeBSD due to missing -pthread argument (#1260)
Browse files Browse the repository at this point in the history
Fixes #1255
  • Loading branch information
jrouwe authored Sep 15, 2024
1 parent 67edb1a commit c7d9114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ For breaking API changes see [this document](https://github.com/jrouwe/JoltPhysi
* Fixed an issue where the bounding volume of a HeightFieldShape was not properly adjusted when calling SetHeights leading to missed collisions.
* Workaround for CMake error 'CMake Error: No output files for WriteBuild!' when using the 'Ninja Multi-Config' generator.
* When a height field was created where SampleCount / BlockSize is not a power of 2 and a soft body touched the right or bottom border of the height field, the application would crash.
* Fixed a link error 'ld: error: undefined symbol: pthread_create' on FreeBSD

## v5.1.0

Expand Down
1 change: 1 addition & 0 deletions Jolt/Jolt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ endif()
# On Unix flavors we need the pthread library
if (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") AND NOT EMSCRIPTEN)
target_compile_options(Jolt PUBLIC -pthread)
target_link_options(Jolt PUBLIC -pthread)
endif()

if (EMSCRIPTEN)
Expand Down

0 comments on commit c7d9114

Please sign in to comment.