Search for all potential library names in each directory, otherwise e.g. libImath-2_2.a from a system directory will be preferred over libImath.a even if we specified a directory.
Search for all potential library names in each directory, otherwise e.g. libImath-2_2.a from a system directory will be preferred over libImath.a even if we specified a directory.