summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2014-04-25 18:31:08 +0200
committerSimon Rettberg2014-04-25 18:31:08 +0200
commit4cb3cb1b3ab4ade3ada5326d7c5ae84c67c16a21 (patch)
tree01ffb5864bb258200809ba40d6acbcbf3a047a28 /remote/setup_target
parent[cups] module.conf.ubuntu.14.04: Added cups-core-drivers (diff)
downloadtm-scripts-4cb3cb1b3ab4ade3ada5326d7c5ae84c67c16a21.tar.gz
tm-scripts-4cb3cb1b3ab4ade3ada5326d7c5ae84c67c16a21.tar.xz
tm-scripts-4cb3cb1b3ab4ade3ada5326d7c5ae84c67c16a21.zip
Improve ld cache handling a bit
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target8
1 files changed, 2 insertions, 6 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 3a0b270d..5da8d0e7 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -459,12 +459,8 @@ post_process_target() {
# figure out all relevant ld-paths
pinfo "Running ldconfig"
- 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"
-
+ cp -r -L /etc/ld.so.conf* "${TARGET_BUILD_DIR}/etc/"
+ ldconfig -v -r "${TARGET_BUILD_DIR}"
}
clean_modules() {