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

Link error on OSX #3

Open
Kerollmops opened this issue Jun 24, 2019 · 6 comments
Open

Link error on OSX #3

Kerollmops opened this issue Jun 24, 2019 · 6 comments

Comments

@Kerollmops
Copy link

Was trying this great wrapper on my macbook and found that there was not problem to run the program with cargo run but a link error of the libmimalloc_sys.dylib pop out when trying to execute the generated program directly.

@Xudong-Huang
Copy link

I think we should use static link to mimalloc by default without install the shared library into system.

@gnzlbg
Copy link
Owner

gnzlbg commented Jun 25, 2019

I can't reproduce this with OSX (for me dynamically linking works just fine), but I'll be happy to take patches that allow users to configure how to link the library.

@Kerollmops
Copy link
Author

Kerollmops commented Jun 25, 2019

Here is a screenshot of how to reproduce the bug on my mac. Nothing fancy :)

Capture d’écran 2019-06-25 à 14 20 47

@gnzlbg
Copy link
Owner

gnzlbg commented Jul 3, 2019

Can you try again with master?

@Kerollmops
Copy link
Author

It works 🎉 Thank you, I can now run the binary directly without requiring cargo.

@repi
Copy link

repi commented Oct 19, 2020

@gnzlbg Think this can be closed, we've been using this for quite a while and static linking does work with it on Mac

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

No branches or pull requests

4 participants