Explorar el Código

Fixed linker error on FreeBSD due to missing -pthread argument (#1260)

Fixes #1255
Jorrit Rouwe hace 1 año
padre
commit
c7d9114f44
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      Docs/ReleaseNotes.md
  2. 1 0
      Jolt/Jolt.cmake

+ 1 - 0
Docs/ReleaseNotes.md

@@ -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
 

+ 1 - 0
Jolt/Jolt.cmake

@@ -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)