proc-macro-srv: make usage of RTLD_DEEPBIND portable
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 16 Jan 2025 15:34:12 +0000 (16:34 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Thu, 24 Apr 2025 15:47:57 +0000 (17:47 +0200)
commited64588eef02668d5a943a78a9265dd9a4e693f3
tree1e5ebce609247d8df535cef3b0798ab3d73423cd
parent9095bb6fa0ea930df0e267514481cf785520c45d
proc-macro-srv: make usage of RTLD_DEEPBIND portable

the constant is wrong on some platforms (e.g., on mips64el it's 0x10, and 0x8
is RTLD_NOLOAD which makes all this functionality broken), the libc crate takes
care of those differences for us.

fallback to old hard-coded value for non-glibc environments (which might or
might not of DEEPBIND support).

Forwarded: https://github.com/rust-lang/rust/pull/135591

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Gbp-Pq: Topic behaviour
Gbp-Pq: Name proc-macro-srv-make-usage-of-RTLD_DEEPBIND-portable.patch
src/tools/rust-analyzer/Cargo.lock
src/tools/rust-analyzer/crates/proc-macro-srv/Cargo.toml
src/tools/rust-analyzer/crates/proc-macro-srv/src/dylib.rs