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>
Fri, 4 Apr 2025 16:24:50 +0000 (18:24 +0200)
commit8d70fb919e462f50a83f8d05bfed04b173e24598
tree5e62ab7751ffcb8acef32573025851a80d5298ce
parentfc62429642914f935b51013dba2125c5d3f970c8
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