wiz port. Lots of refactoring, some bugfixes
[ginge.git] / dist / ginge_dyn_eabi.sh
diff --git a/dist/ginge_dyn_eabi.sh b/dist/ginge_dyn_eabi.sh
new file mode 100755 (executable)
index 0000000..32c12f8
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+root=$1
+shift
+
+loader="${root}lib/ld-linux.so.2"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${root}lib"
+export LD_PRELOAD="${root}ginge_dyn"
+
+export GINGE_ROOT="${root}"
+
+exec "${loader}" "$@"