YakshaLang / Yaksha

😈 Yaksha Programming Language - Offside rule + Lisp system for macros. 🐣 WIP
https://yakshalang.github.io/
GNU General Public License v3.0
196 stars 13 forks source link

Fix missing library dependencies on Linux #16

Closed mshockwave closed 1 year ago

mshockwave commented 1 year ago

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.