From 842202241905461e82d8b111960ec27b40e17e3e Mon Sep 17 00:00:00 2001 From: Aurlin Date: Tue, 19 Jan 2016 11:23:12 +0100 Subject: [PATCH 1/2] 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 From 1e3133d1f05507149ac60fac64d9fbb0da5a6359 Mon Sep 17 00:00:00 2001 From: Aurlin Date: Wed, 20 Jan 2016 18:27:55 +0100 Subject: [PATCH 2/2] Update build flags for lua --- vendor/lua/lua.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/lua/lua.go b/vendor/lua/lua.go index 5a4a31e..a039618 100644 --- a/vendor/lua/lua.go +++ b/vendor/lua/lua.go @@ -12,7 +12,7 @@ package lua #cgo CFLAGS: -Ilua #cgo llua LDFLAGS: -llua #cgo luaa LDFLAGS: -llua -lm -ldl -#cgo linux,!llua,!luaa LDFLAGS: -llua5.1 +#cgo linux,!llua,!luaa LDFLAGS: -llua5.1 -lm #cgo darwin,!luaa pkg-config: lua5.1 #cgo freebsd,!luaa LDFLAGS: -llua-5.1