Open robo9k opened 9 years ago
It looks like the file
package does not install a libmagic.pc
, so pkg-config
does not know about it.
Since they're using the GNU autotools
, adding support should not be difficult (needs an upstream ticket).
Getting a new file
/ libmagic
package onto Travis CI might require using a PPA.
Upstream issue 0000136 added a libmagic.pc
for static linking, available since version 5.39
While vcpkg includes the required libmagic.pc
, it does not provide a pkg-config
binary. It's possible to vcpkg install pkgconf
for an alternate binary (see https://github.com/pkgconf/pkgconf ) that unfortunately doesn't become part of PATH
.
The pkg-config
crate should work with either binary, but would need environment variables instead of mostly effortless cargo vcpkg build && cargo build
.
Right now we unconditionally link with
-l magic
.This behaviour should be changed to attempt using
pkg-config
first, then falling back to the hardlinked library name.