13
0
livetrax/gtk2_ardour/arprof-scons
2009-07-22 13:53:19 +00:00

10 lines
254 B
Bash
Executable File

#!/bin/sh
if [ gprofhelper.c -nt gprofhelper.so ] ; then
echo "Recompiling gprof helper ..."
gcc -shared -nostdlib -fPIC gprofhelper.c -o gprofhelper.so -lpthread -ldl || exit 1
fi
. ardev_common.sh
LDPRELOAD=./gprofhelper.so $EXECUTABLE "$@"