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