When configured to use GCC or Clang to build yaksha on Linux, it seems like many parts of the runtime are depending on pthread. Similarily, the main yaksha binary depends on libdl. Not sure if you used zig cc to build the project and this was not a issue with that toolchain, but I thought it will be more convenient to make Yaksha buildable using system compilers.
This patch adds the missing library dependencies when building on Linux. More specifically, since the LIBS variable in the cmake script was actually never initialized, I renamed it to SYS_LIBS and used it to specify those missing libraries on Linux. Theoretically this won't break the existing Windows buildbot.
When configured to use GCC or Clang to build yaksha on Linux, it seems like many parts of the runtime are depending on
pthread
. Similarily, the mainyaksha
binary depends onlibdl
. Not sure if you usedzig cc
to build the project and this was not a issue with that toolchain, but I thought it will be more convenient to make Yaksha buildable using system compilers.This patch adds the missing library dependencies when building on Linux. More specifically, since the
LIBS
variable in the cmake script was actually never initialized, I renamed it toSYS_LIBS
and used it to specify those missing libraries on Linux. Theoretically this won't break the existing Windows buildbot.