use Inline C => Config => BUILD_NOISY => 1, LIBS => '-L/path/to/lib -lfoo';