mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
scripts: bundle-libraries: fix logic flaw
Previous refactoring of the script moved the LDSO detection into a file-not-exists condition, causing onyl the very first executable to get bundled. Solve the problem by unconditionally checking for LDSO again. Fixes:9030a78a71
("scripts: bundle-libraries: prevent loading host locales") Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit5ebcd32997
)
This commit is contained in:
parent
6e8f1c3878
commit
9d3825a027
@ -156,17 +156,16 @@ for BIN in "$@"; do
|
|||||||
dest="$DIR/lib/${token##*/}"
|
dest="$DIR/lib/${token##*/}"
|
||||||
ddir="${dest%/*}"
|
ddir="${dest%/*}"
|
||||||
|
|
||||||
|
case "$token" in
|
||||||
|
*/ld-*.so*) LDSO="${token##*/}" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
[ -f "$token" -a ! -f "$dest" ] && {
|
[ -f "$token" -a ! -f "$dest" ] && {
|
||||||
_md "$ddir"
|
_md "$ddir"
|
||||||
_cp "$token" "$dest"
|
_cp "$token" "$dest"
|
||||||
case "$token" in
|
case "$token" in
|
||||||
*ld-*.so*)
|
*/ld-*.so*) _patch_ldso "$dest" ;;
|
||||||
LDSO="${token##*/}"
|
*/libc.so.6) _patch_glibc "$dest" ;;
|
||||||
_patch_ldso "$dest"
|
|
||||||
;;
|
|
||||||
libc.so.6|*/libc.so.6)
|
|
||||||
_patch_glibc "$dest"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
;; esac
|
;; esac
|
||||||
|
Loading…
Reference in New Issue
Block a user