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, 20 Feb 2025 18:23:02 +0000 (19:23 +0100)
commit3a9ba7e2cea0e775a75b710903826879459f4765
treeed2b2b57c11e24a4a13803e27d6eace1050afcf1
parent907b63cc4416e06e0d94c0d2d0e860266d63966a
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