Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing library dependencies on Linux #16

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

mshockwave
Copy link
Contributor

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 main
`yaksha` binary depends on `libdl`.
This patch adds the missing library dependencies when building on Linux.
@JaDogg JaDogg merged commit 2826ee1 into YakshaLang:main Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants