summaryrefslogtreecommitdiff
path: root/lua_scripts
diff options
context:
space:
mode:
authorMika Westerberg <ext-mika.1.westerberg@nokia.com>2009-01-12 14:01:19 +0200
committerLauri Leukkunen <lle@rahina.org>2009-01-20 06:54:33 +0200
commit043aa5ca9f219483c7208433ddc865e01481de1c (patch)
treeab68984a9af0125381088b1e59eb25aaa294d3b1 /lua_scripts
parent0546809bf27cf80941cedf053a00112524c4064c (diff)
sb2 now writes path where libsb2 is found into exec_config.lua.
Variable is named as 'conf_(tools|target)_libsb2_dir' and it is used in emulate mode to disable its mapping. Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
Diffstat (limited to 'lua_scripts')
-rw-r--r--lua_scripts/pathmaps/emulate/00_default.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/lua_scripts/pathmaps/emulate/00_default.lua b/lua_scripts/pathmaps/emulate/00_default.lua
index 368816d..250c3f4 100644
--- a/lua_scripts/pathmaps/emulate/00_default.lua
+++ b/lua_scripts/pathmaps/emulate/00_default.lua
@@ -143,7 +143,23 @@ emulate_mode_target_ld_library_path = nil -- default = not needed
emulate_mode_target_ld_library_path_suffix = nil
if (conf_target_sb2_installed) then
+ --
+ -- When libsb2 is installed to target we don't want to map
+ -- the path where it is found. For example gdb needs access
+ -- to the library and dynamic linker. So here we insert special
+ -- rules on top of mapall_chain that prevents sb2 to map these
+ -- paths.
+ --
+ if (conf_target_libsb2_dir ~= nil) then
+ table.insert(mapall_chain.rules, 1,
+ { prefix = conf_target_libsb2_dir, use_orig_path = true,
+ readonly = true })
+ end
if (conf_target_ld_so ~= nil) then
+ table.insert(mapall_chain.rules, 1,
+ { path = conf_target_ld_so, use_orig_path = true,
+ readonly = true })
+
-- use dynamic libraries from target,
-- when executing native binaries!
emulate_mode_target_ld_so = conf_target_ld_so