mirror of https://github.com/ledisdb/ledisdb.git
Update build flags for lua
Add all flags to compile lua in most of OS
This commit is contained in:
parent
ebe5340cf9
commit
8422022419
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue