The output of the pkg-config is correct.
The GNU linker (ld) (I don't know if others too) allows you to write the libraries with their full path, without any -L or -l, in addition to the usual -L and -l options.
The error must be in some other place.