The common /usr/lib and /usr/local/lib paths are not included in the cc command generated by Cargo.
Should not these be included by default? Do I really have to explicitly put them in some cargo config file? I can’t remember ever having done that on Linux so it might be a FreeBSD issue…
export LD_LIBRARY_PATH=… does not help.
This happened when building rust-sdl but should apply to any crate that links to shared c library…