BLFS doesn't document the library search process
|Reported by:||Owned by:|
BLFS has the following boilerplate for library configuration:
As with most libraries, there is no configuration to do, save that the library directory, i.e., /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.
However, this is very insufficient, because it only ensures that the library can be found at runtime. Nothing (e.g., setting PATH so that it includes foo-config, adjusting pkgconfig path, or, in the worst case, setting LDFLAGS) is done to ensure that the packages that need the library can find it at the build time.