-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add -Bsymbolic-functions on Linux #8864
Conversation
I'm afraid it might be a bit misleading to merge this, since sys.ji may still call the wrong libuv function. fixing that would require enable the code that does two-level lookup (in the style of Darwin) for linux, whereas currently it is only is active for Windows (where we don't have the option of using flat namespaces) |
This caused Julia to call the correct function in the case of the user in the linked mailing list discussion. What's the downside to including this linker flag? |
none that I know of, just that it may not be the complete story |
I'm going to merge this as it's minor, debian does it automatically, and it solves a user's problem without introducing any others that I can find. We will tackle Jameson's points when they rear their ugly, medusa-like heads. |
Add -Bsymbolic-functions on Linux
Hey great, this helps me a lot. But. I saw that JLDFLAGS does not apply to building libjulia.so, but only the Julia executable. I changed Make.inc locally to this, and got the desired result. -Bsymbolic-functions applied to the link step of julia itself is probably not necessary, but I left it to not be disruptive and just for example. I'm not sure about LDFLAGS being the right thing either, but saw that it gets applied in Makefile in src. I can do a pull request if that helps.
|
@tkelman This fix actually didn't fix what I thought it fixed. I thought |
I think we want to avoid |
Few things
included src/Makefile
and took it out of Make.inc
|
What might be better to try would be also applying |
I had the same thought. Let's do that then, and if this has to slide to On Tue, Nov 18, 2014 at 1:02 AM, Tony Kelman notifications@github.com
|
Hrm idaknow. The flags necessary to construct libjulia.so are likely different than the executable. Take for instance -Bsymbolic-functions itself. From how I read it, it's supposed to only have any affect at all when constructing a shared library. Adding it in as a flag when constructing the executable seems strange. If you are really wanting to control from the top, maybe a new flag? I mean there's one sport that it's used anyway (ok, 2, julia-debug too).
^ something new here? Maybe something like LIBJLDFLAGS? But man, I'm totally not complaining at all. You guys are awesome. |
Hey guys, I have a branch I can turn into a pull request for this along the lines I proposed, interested? |
Yes please! Submit a PR and we'll hash out the details there. |
See https://groups.google.com/forum/#!topic/julia-dev/wxYgZy70Nd0 for why this is useful, namely so that you can load
libjulia.so
into node and not crash.