aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 740e182..2690406 100755
--- a/build.sh
+++ b/build.sh
@@ -43,7 +43,7 @@ esac
dc_cflags=(${cflags[@]} -Iteensy -Idc)
[ ! -z "$debug" ] && teensy_cflags+=(-DDC_DEBUG)
-dc_ldflags=(${ldflags[@]} -L. -lteensy)
+dc_ldflags=(${ldflags[@]} -L. -l:libteensy.so -Wl,-rpath,$PWD)
dc_src=$(find dc -name '*.c')
teensy_src=$(find teensy -name '*.c' -not -path '*platform*')
@@ -65,4 +65,4 @@ time (
${dc_cflags[@]} || exit 1
)
-[ $? -eq 0 ] && [ ! -z "$run" ] && LD_LIBRARY_PATH=. $RUN_CMD ./demonchime
+[ $? -eq 0 ] && [ ! -z "$run" ] && $RUN_CMD ./demonchime