summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua_scripts/pathmaps/emulate/00_default.lua4
-rwxr-xr-xwrappers/ldconfig2
2 files changed, 5 insertions, 1 deletions
diff --git a/lua_scripts/pathmaps/emulate/00_default.lua b/lua_scripts/pathmaps/emulate/00_default.lua
index f0ae06f..0e1b20d 100644
--- a/lua_scripts/pathmaps/emulate/00_default.lua
+++ b/lua_scripts/pathmaps/emulate/00_default.lua
@@ -46,6 +46,10 @@ mapall_chain = {
{ path = "/etc/osso-af-init/dbus-systembus.sh",
map_to = sb1_compat_dir },
+ -- ldoconfig is static binary, and needs to be wrapped
+ {path = "/sbin/ldconfig", replace_by = sbox_dir ..
+ "/share/scratchbox2/wrappers/ldconfig"},
+
--
{prefix = session_dir, use_orig_path = true},
{prefix = "/tmp", replace_by = tmp_dir_dest},
diff --git a/wrappers/ldconfig b/wrappers/ldconfig
index 292efec..5dd598a 100755
--- a/wrappers/ldconfig
+++ b/wrappers/ldconfig
@@ -38,4 +38,4 @@ then
. $sbox_dir/share/scratchbox2/modeconf/sb2rc.$sbox_mapmode "$progbase"
fi
-exec /sbin/ldconfig -r "$sbox_target_root" $args
+exec $sbox_target_root/sbin/ldconfig -r "$sbox_target_root" $args