Adding some more info…
When I run cargo build on my crate (simple demo app) that depends on rust-sdl2, sdl2-sys which links to libSDL builds fine. It can find the libSDL2 using pkg-config.
However, last when “cc” is run on my crate the path to libSDL2 (/usr/local/lib) is not there and linking fails…
Shouldn’t the path to libSDL used when building sdl2-sys be used also in the last “cc” command to link my binary? Think there is something missing here…