package bbclass: allow per package PRIVATE_LIBS

If a recipe packages multiple versions of shlib (e.g. powervr drivers) we only want the shlib code to pickup $PN, not $PN-foo subpackages.
This keeps backward compatibility with the global PRIVATE_LIBS usage if no per package PRIVATE_LIBS are set for a given package. In other words: this doesn't break the firefox recipe.

(From OE-Core rev: ce46dbddef40ae3eef7238ac07438b15bd09e156)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Koen Kooi 2012-01-27 17:50:40 +01:00 committed by Richard Purdie
parent 8ac227e4ac
commit 8d4d9a15c4
1 changed files with 1 additions and 1 deletions

View File

@ -1326,8 +1326,8 @@ python package_do_shlibs() {
needed = {}
shlib_provider = {}
private_libs = d.getVar('PRIVATE_LIBS', True)
for pkg in packages.split():
private_libs = d.getVar('PRIVATE_LIBS_' + pkg, True) or d.getVar('PRIVATE_LIBS', True)
needs_ldconfig = False
bb.debug(2, "calculating shlib provides for %s" % pkg)