Merge pull request #222 from Aurlin/master

Update build flags for lua (Fix #217)
This commit is contained in:
siddontang 2016-01-21 21:23:31 +08:00
commit 22360934dd
1 changed files with 7 additions and 2 deletions

9
vendor/lua/lua.go vendored
View File

@ -8,8 +8,13 @@
package lua
/*
#cgo LDFLAGS: -llua
#cgo linux LDFLAGS: -lm -ldl
#cgo pkg-config: lua5.1
#cgo CFLAGS: -Ilua
#cgo llua LDFLAGS: -llua
#cgo luaa LDFLAGS: -llua -lm -ldl
#cgo linux,!llua,!luaa LDFLAGS: -llua5.1 -lm
#cgo darwin,!luaa pkg-config: lua5.1
#cgo freebsd,!luaa LDFLAGS: -llua-5.1
#include <lua.h>
#include <stdlib.h>