-
Notifications
You must be signed in to change notification settings - Fork 25
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
Compile a static executable program #159
Comments
Hi, Currently there is no method to compile our code to a static binary. It seems that the TBB developers strongly advise against it and do not offer a static library themselves. You can try to roll your own with the steps outlined in https://stackoverflow.com/questions/638278/how-to-statically-link-to-tbb. But I'm guessing you found that link and the associated caveats already. This seems to be the easiest option to run in different environments. We're not planning to move away from TBB any time soon. Best, |
Hi, |
I think that should be fine. We're happy to take contributions. |
Implemented in #161. |
Assuming #161 is implemented correctly, it currently leads to the following behaviour: The dynamic version (
So basically the same code behaves differently when used as a shared or static library. I am not familiar enough with this project to pin down the issue and I understand that supporting a static version of the library interface is not a priority but maybe someone has an idea on what the issue could be. |
Hi,
I am trying to compile a static executable program that can run in different Linux environments,
However, I found it difficult to compile static programs because of the TBB library.
Is there a method for compiling static programs? Or is there any suggestion to run the program in different environments.
thanks!
The text was updated successfully, but these errors were encountered: