summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-14 13:32:45 +0200
committerSimon Rettberg2013-06-14 13:32:45 +0200
commitd61ad95c7690155a18b2abd39bf8df37e9a02908 (patch)
tree0494b3ce833e79d73c169fd93f80fdd1d685c6b2 /remote/setup_target
parent[kdm] shutdown and reboot immediately (diff)
downloadtm-scripts-d61ad95c7690155a18b2abd39bf8df37e9a02908.tar.gz
tm-scripts-d61ad95c7690155a18b2abd39bf8df37e9a02908.tar.xz
tm-scripts-d61ad95c7690155a18b2abd39bf8df37e9a02908.zip
ldconfig: Include system's default paths
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target
index b0565550..54ed0cb0 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -314,7 +314,12 @@ post_process_target() {
rm -r "${TARGET_BUILD_DIR}/lib/systemd"
fi
- ldconfig -r "${TARGET_BUILD_DIR}"
+ # figure out all relevant ld-paths
+ local LDTEMP="$TARGET_BUILD_DIR/ldconf-temp"
+ grep -h '^\s*/' /etc/ld.so.conf /etc/ld.so.conf.d/* > "$LDTEMP"
+ # TODO: Echo other stuff to $LDTEMP (but figure out if first or last match wins)
+ ldconfig -v -r "${TARGET_BUILD_DIR}" -f "/ldconf-temp"
+ unlink "$LDTEMP"
}