Fix the CMake rules to install pkg-config file into lib/pkgconfig
rather than share/pkgconfig. The former location is correct
for ABI-dependent files such as libraries, while the latter should be
used only for ABI-agnostic resources (data files, executables).
This fixes using yajl on multilib systems where 32-bit and 64-bit
versions of the library are installed separately. This requires two
separate pkg-config files to be installed along with the libraries
into appropriate libdirs. When the file was installed into /usr/share,
only one variant was permitted and effectively using the other multilib
variant was broken, breaking other packages.
Fix the CMake rules to install pkg-config file into lib/pkgconfig rather than share/pkgconfig. The former location is correct for ABI-dependent files such as libraries, while the latter should be used only for ABI-agnostic resources (data files, executables).
This fixes using yajl on multilib systems where 32-bit and 64-bit versions of the library are installed separately. This requires two separate pkg-config files to be installed along with the libraries into appropriate libdirs. When the file was installed into /usr/share, only one variant was permitted and effectively using the other multilib variant was broken, breaking other packages.
Original bug report: https://bugs.gentoo.org/677870