--- runtime/CMakeLists.txt.orig 2022-07-20 17:05:27 UTC +++ runtime/CMakeLists.txt @@ -123,6 +123,8 @@ if("${C_SYSTEM_LIBS}" STREQUAL "AUTO") set(C_SYSTEM_LIBS m c) elseif("${TARGET_SYSTEM}" MATCHES "Linux") set(C_SYSTEM_LIBS m pthread rt dl) + elseif("${TARGET_SYSTEM}" MATCHES "FreeBSD") + set(C_SYSTEM_LIBS m pthread execinfo z) else() set(C_SYSTEM_LIBS m pthread) endif()