diff --git a/vendor/lua/lua.go b/vendor/lua/lua.go index ecef2bc..a039618 100644 --- a/vendor/lua/lua.go +++ b/vendor/lua/lua.go @@ -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 #include