summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index d37499f291..1625ebdb38 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -725,6 +725,8 @@ python split_and_strip_files () {
725 symlinks = {} 725 symlinks = {}
726 hardlinks = {} 726 hardlinks = {}
727 kernmods = [] 727 kernmods = []
728 libdir = os.path.abspath(dvar + os.sep + d.getVar("libdir", True))
729 baselibdir = os.path.abspath(dvar + os.sep + d.getVar("base_libdir", True))
728 if (d.getVar('INHIBIT_PACKAGE_DEBUG_SPLIT', True) != '1') and \ 730 if (d.getVar('INHIBIT_PACKAGE_DEBUG_SPLIT', True) != '1') and \
729 (d.getVar('INHIBIT_PACKAGE_STRIP', True) != '1'): 731 (d.getVar('INHIBIT_PACKAGE_STRIP', True) != '1'):
730 for root, dirs, files in os.walk(dvar): 732 for root, dirs, files in os.walk(dvar):
@@ -749,7 +751,8 @@ python split_and_strip_files () {
749 # Skip broken symlinks 751 # Skip broken symlinks
750 continue 752 continue
751 # Check its an excutable 753 # Check its an excutable
752 if (s[stat.ST_MODE] & stat.S_IXUSR) or (s[stat.ST_MODE] & stat.S_IXGRP) or (s[stat.ST_MODE] & stat.S_IXOTH): 754 if (s[stat.ST_MODE] & stat.S_IXUSR) or (s[stat.ST_MODE] & stat.S_IXGRP) or (s[stat.ST_MODE] & stat.S_IXOTH) \
755 or ((file.startswith(libdir) or file.startswith(baselibdir)) and ".so" in f):
753 # If it's a symlink, and points to an ELF file, we capture the readlink target 756 # If it's a symlink, and points to an ELF file, we capture the readlink target
754 if os.path.islink(file): 757 if os.path.islink(file):
755 target = os.readlink(file) 758 target = os.readlink(file)