'Read and parse /etc/ld.so.conf to generate a list of directories that ldconfig would search.
Pre-seed the search directory list with (\'/lib\', \'/usr/lib\', \'/lib64\', \'/usr/lib64\')
:param ld_so_conf_filename: path to /etc/ld.so.conf
:type ld_so_conf_filename: str
:param extra_dirs:
:type extra_dirs: iterable
:return: iterator over the directories found
:rtype: iterable'

def ldconfig(self, ld_so_conf_filename=LD_SO_CONF, extra_dirs=COMMON_LIB_PATHS):

    self.lddirs = []
    for d in extra_dirs:
        self._add_dir(d)
    self.parse_conf(ld_so_conf_filename)
    return (ld.path for ld in self.lddirs)
