mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
18815ba852
Fix environ on FreeBSD with cdylib targets that use -Wl,--no-undefined . Instead of relying on the linker to find the 'environ' symbol, use dlsym. This fixes using `environ` from cdylibs that link with `-Wl,--no-undefined` . Fixes rust-lang/rust#153451 Sponsored by: ConnectWise