package.bbclass: fix build problem related to private libs
authorMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 29 Mar 2007 13:25:19 +0000 (13:25 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Thu, 29 Mar 2007 13:25:19 +0000 (13:25 +0000)
classes/package.bbclass

index 19c206a..3e80b2b 100644 (file)
@@ -598,7 +598,7 @@ python package_do_shlibs() {
                                                m = re.match("\s+SONAME\s+([^\s]*)", l)
                                                if m and not m.group(1) in sonames:
                                                        # if library is private (only used by package) then do not build shlib for it
-                                                       if private_libs == '' or -1 == private_libs.find(m.group(1)):
+                                                       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