Get __pthread_get_minstack at runtime with dlsym#23631
Get __pthread_get_minstack at runtime with dlsym#23631bors merged 3 commits intorust-lang:masterfrom
Conversation
Linking __pthread_get_minstack, even weakly, was causing Debian’s dpkg-shlibdeps to detect an unnecessarily strict versioned dependency on libc6. Closes rust-lang#23628. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
since you're removing this could you merge the mac os implementation into this?
There was a problem hiding this comment.
I’m not a Mac user; does Rust use glibc on Mac? I figured we shouldn’t waste time looking up __pthread_get_minstack on non-glibc.
(But yeah, I should update the comment below, if nothing else.)
There was a problem hiding this comment.
i guess i'm not sure, just going by this comment: https://github.com/rust-lang/rust/blob/master/src/libstd/sys/unix/thread.rs#L335
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
We currently actually have a two other of these sorts of |
|
Those two are less problematic because they aren’t |
|
Ah well it looks like |
Linking `__pthread_get_minstack`, even weakly, was causing Debian’s `dpkg-shlibdeps` to detect an unnecessarily strict versioned dependency on libc6. Closes rust-lang#23628.
Linking
__pthread_get_minstack, even weakly, was causing Debian’sdpkg-shlibdepsto detect an unnecessarily strict versioned dependency on libc6.Closes #23628.