#!/bin/sh

# ulimit -s 32000
# ulimit -a

rn=`readlink -f "${0}"`
pd=`dirname "${rn}"`
sd=`readlink -f .`

exe="memory"

LD_LIBRARY_PATH=./libsdl2:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH

# export LD_DEBUG=all
exec env \
	BB_PRIMARY_DIR="${pd}" BB_SECONDARY_DIR="${sd}" \
	BB_PACKED_NAME="${exe}" BB_PACKED_FIRST=  \
	"${pd}"/${exe} "${@}"
