Update build flags for lua

Add all flags to compile lua in most of OS
This commit is contained in:
Aurlin 2016-01-19 11:23:12 +01:00
parent ebe5340cf9
commit 8422022419
1 changed files with 7 additions and 2 deletions

9
vendor/lua/lua.go vendored
View File

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