From 842202241905461e82d8b111960ec27b40e17e3e Mon Sep 17 00:00:00 2001 From: Aurlin Date: Tue, 19 Jan 2016 11:23:12 +0100 Subject: [PATCH] Update build flags for lua Add all flags to compile lua in most of OS --- vendor/lua/lua.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vendor/lua/lua.go b/vendor/lua/lua.go index ecef2bc..5a4a31e 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 +#cgo darwin,!luaa pkg-config: lua5.1 +#cgo freebsd,!luaa LDFLAGS: -llua-5.1 #include #include