diff options
| author | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2007-03-30 02:13:29 +0000 |
|---|---|---|
| committer | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2007-03-30 02:13:29 +0000 |
| commit | df072e35c156fcedce2e7488efd9651f2fe6773c (patch) | |
| tree | c1e00f7392d09a019c54d3aec7112ff050be7a78 /classes/package.bbclass | |
| parent | 8fc5afd475c8c2a1fd4de81937cd736c5931bb7c (diff) | |
| parent | a5ab4c711b23d99dd9d252d5c08fa60dd76c493d (diff) | |
merge of '338ea31d4809a6db514f8ee9dbd35db2c426e83f'
and '33ef958347850ae3830b2326a4476282484717bd'
Diffstat (limited to 'classes/package.bbclass')
| -rw-r--r-- | classes/package.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass index 07fdb7f890..3e80b2b31c 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -573,6 +573,7 @@ python package_do_shlibs() { bb.mkdirhier(shlibs_dir) needed = {} + private_libs = bb.data.getVar('PRIVATE_LIBS', d, 1) for pkg in packages.split(): needs_ldconfig = False bb.debug(2, "calculating shlib provides for %s" % pkg) @@ -596,7 +597,9 @@ python package_do_shlibs() { needed[pkg].append(m.group(1)) m = re.match("\s+SONAME\s+([^\s]*)", l) if m and not m.group(1) in sonames: - sonames.append(m.group(1)) + # if library is private (only used by package) then do not build shlib for it + if not private_libs or -1 == private_libs.find(m.group(1)): + sonames.append(m.group(1)) if m and libdir_re.match(root): needs_ldconfig = True shlibs_file = os.path.join(shlibs_dir, pkg + ".list") |
