From 9d00aa229d1c66afb8f57683de49cdf9b5f8c9ad Mon Sep 17 00:00:00 2001 From: siddontang Date: Sat, 13 Sep 2014 14:34:15 +0800 Subject: [PATCH] update lua bash --- dev.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev.sh b/dev.sh index 72cde0f..4a68e7a 100644 --- a/dev.sh +++ b/dev.sh @@ -77,6 +77,10 @@ fi #check lua if [ -f $LUA_DIR/include/lua.h ]; then + CGO_CFLAGS="$CGO_CFLAGS -I$LUA_DIR/include" + CGO_LDFLAGS="$CGO_LDFLAGS -L$LUA_DIR/lib -llua" + LD_LIBRARY_PATH=$(add_path $LD_LIBRARY_PATH $LUA_DIR/lib) + DYLD_LIBRARY_PATH=$(add_path $DYLD_LIBRARY_PATH $LUA_DIR/lib) GO_BUILD_TAGS="$GO_BUILD_TAGS lua" fi