Winit: libdl link error on BSD

Created on 31 Aug 2019  路  2Comments  路  Source: rust-windowing/winit

When running cargo run --example window on e.g. NetBSD, it throws error ld: cannot find -ldl.

dlopen.rs is built for *BSD as well as Linux.
But *BSD does not have libdl (dlopen, etc. is contained in libc, or no library is required for it).

Furthermore, dlopen seems no longer used?

X11 needs investigation bug

Most helpful comment

Yes, it certainly appears that the dlopen module is unused. I don't know how long it's been unused, but according to blame, the #![allow(dead_code)] attribute in that file is over 4 years old.

I can't see any reason to keep the module.

All 2 comments

Yes, it certainly appears that the dlopen module is unused. I don't know how long it's been unused, but according to blame, the #![allow(dead_code)] attribute in that file is over 4 years old.

I can't see any reason to keep the module.

Thanks! Works fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rukai picture rukai  路  4Comments

chrisduerr picture chrisduerr  路  3Comments

alexheretic picture alexheretic  路  4Comments

mistodon picture mistodon  路  4Comments

francesca64 picture francesca64  路  4Comments