dev-db/postgresql installs its pkg-config files in /usr/lib*/postgresql-*/lib*/pkgconfig/, and then eselect-postgresql creates symlinks to them in /usr/share/pkgconfig/. This is wrong, as /usr/share/ is intended for architecture-independent files. The correct location for architecture-dependent pkg-config files is /usr/lib*/pkgconfig/. Please fix eselect-postgresql to create its pkg-config symlinks in the correct location. Also, while you're at it: eselect-postgresql currently fails if the destination pkgconfig directory does not already exist: # eselect postgresql update Setting 16 as the default...ln: failed to create symbolic link '/usr/share/pkgconfig/libecpg_compat.pc': No such file or directory !!! Error: SYMLINK FAILED: ../../lib64/postgresql-16/lib64/pkgconfig/libecpg_compat.pc -> /usr/share/pkgconfig/libecpg_compat.pc So be sure you're creating the (correct) destination directory before trying to create symlinks in it.