summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-10 16:56:35 +0200
committerSimon Rettberg2013-06-10 16:56:35 +0200
commit7cc24161052f2127f906ed1c1cd9564959ef9f25 (patch)
treeca08bdd7a8be04fb04be7086cdca60cc7f7526ed /helper
parent[systemd] patch PATH environment variable in systemd-src (diff)
downloadtm-scripts-7cc24161052f2127f906ed1c1cd9564959ef9f25.tar.gz
tm-scripts-7cc24161052f2127f906ed1c1cd9564959ef9f25.tar.xz
tm-scripts-7cc24161052f2127f906ed1c1cd9564959ef9f25.zip
[binutil.h] Consider $REQUIRED_LDD_BLACKLIST when fetching dynamic dependencies
[kdm] Blacklist libQtWebKit - it's 25M and of no use (yet?)
Diffstat (limited to 'helper')
-rw-r--r--helper/binutil.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/binutil.inc b/helper/binutil.inc
index 9ad9e104..497ae75b 100644
--- a/helper/binutil.inc
+++ b/helper/binutil.inc
@@ -18,7 +18,7 @@
#
############################################################
# We use a blacklist mechanism to exclude common libraries.
-# This improve runtime quite a bit...
+# This improves runtime quite a bit...
BLACKLIST="ld-linux linux-gate linux-vdso libc.so"
# Initialise flag and path for local search
@@ -59,7 +59,7 @@ get_dynamic_dependencies() {
local LDD_OUT="ldd_output"
if ldd "$BINARY" > "$LDD_OUT"; then
# Case 1: file is a dynamic executable
- for LIB in $(cat "$LDD_OUT" | grep -v "${CURRENT_BLACKLIST}" | awk '{print $1 $2 $3}'); do
+ for LIB in $(grep -v "${CURRENT_BLACKLIST}${REQUIRED_LDD_BLACKLIST}" "$LDD_OUT" | awk '{print $1 $2 $3}'); do
# split the entry into an array, ex:
# libm.so.6 => /lib/libm.so.6 would be split into:
# LIBLINK[0] LIBLINK[1]