For example, it should print an error for a port that has no .so files in lib/ and USE_LDCONFIG=yes, which is translated to ${LOCALBASE}/lib. Same when USE_LDCONFIG contains any other directory without .so files.
I have added a check that the port installs shared objects if USE_LDCONFIG is defined. It will be part of the next release.
Check committed to 2.17.15.