update lua bash

This commit is contained in:
siddontang 2014-09-13 14:34:15 +08:00
parent 6aec5d4952
commit 9d00aa229d
1 changed files with 4 additions and 0 deletions

4
dev.sh
View File

@ -77,6 +77,10 @@ fi
#check lua #check lua
if [ -f $LUA_DIR/include/lua.h ]; then 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" GO_BUILD_TAGS="$GO_BUILD_TAGS lua"
fi fi