diff options
Diffstat (limited to 'go')
-rwxr-xr-x | go | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +#!/bin/bash + +GDB="" +#GDB="gdb --args" +BASEDIR=`pwd`/.. +[ ! -d $BASEDIR/alsa-lib ] && BASEDIR="$BASEDIR/.." +CMD="$1" +shift +ALSALIB_CONF=$BASEDIR/alsa-lib/src/conf/alsa.conf + +case $CMD in +run) + PROG="$1" + shift + ALSA_CONFIG_PATH="$ALSALIB_CONF" \ + LD_PRELOAD=$BASEDIR/alsa-lib/src/.libs/libasound.so $GDB $PROG "$@" + ;; +*) + echo "This is test build using alsa-lib in: $BASEDIR" + ./gitcompile --with-alsa-inc-prefix=$BASEDIR/alsa-lib/include \ + --with-alsa-prefix=$BASEDIR/alsa-lib/src/.libs + ;; +esac |