diff options
author | Lauri Leukkunen <lle@rahina.org> | 2007-01-14 03:26:50 +0200 |
---|---|---|
committer | Lauri Leukkunen <lleukkun@leka.rahina.org> | 2007-01-14 03:26:50 +0200 |
commit | 1b9b43c8e4467b570ccea8feefd3da44acc48519 (patch) | |
tree | 914edb5f039b6a9eb588f4ad2ea633878645958a /utils | |
parent | d3d0c9aa191103ed43cd594ead97e0c9b25c423c (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-x | utils/sb2 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |