summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorLauri Leukkunen <lle@rahina.org>2007-01-14 03:26:50 +0200
committerLauri Leukkunen <lleukkun@leka.rahina.org>2007-01-14 03:26:50 +0200
commit1b9b43c8e4467b570ccea8feefd3da44acc48519 (patch)
tree914edb5f039b6a9eb588f4ad2ea633878645958a /utils
parentd3d0c9aa191103ed43cd594ead97e0c9b25c423c (diff)
* change libsb2.c to not leak memory like a stabbed pig
* rework the mappings code again * add locking for the mapping cache
Diffstat (limited to 'utils')
-rwxr-xr-xutils/sb27
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/sb2 b/utils/sb2
index bb4875e..14db265 100755
--- a/utils/sb2
+++ b/utils/sb2
@@ -23,7 +23,12 @@ if [ -z "$SBOX_TARGET_ROOT" ]; then
SBOX_TARGET_ROOT="$(readlink -f -n $PWD)"
fi
-export SBOX_LIBSB2 SBOX_REDIR_SCRIPTS SBOX_TARGET_ROOT SBOX_GCCWRAPPER SBOX_TARGET_COMPILER
+SBOX_MAPPING_CACHE=$SBOX_TARGET_ROOT.sb2cache
+if [ ! -d $SBOX_MAPPING_CACHE ]; then
+ mkdir -p $SBOX_MAPPING_CACHE
+fi
+
+export SBOX_LIBSB2 SBOX_REDIR_SCRIPTS SBOX_TARGET_ROOT SBOX_MAPPING_CACHE SBOX_GCCWRAPPER SBOX_TARGET_COMPILER
cd $SBOX_TARGET_ROOT