File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- CC =gcc
2
- LDFLAGS =-bundle -undefined dynamic_lookup
1
+ CC =gcc-9
2
+ # LDFLAGS=-bundle -undefined dynamic_lookup
3
3
KARCH =m64
Original file line number Diff line number Diff line change 1
1
KARCH =l64
2
- CFLAGS+ =-I/usr/include/lua5.1 - pthread
3
- LIBS =-llua5.1
2
+ CFLAGS+ =-pthread
3
+ LIBS =/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0
Original file line number Diff line number Diff line change 1
1
CC =gcc
2
- CFLAGS=-DKXVER =3 -DLUA_COMPAT_MODULE=1 -fpic -I/usr/local/include/lua5.1
2
+ CFLAGS=-DKXVER =3 -DLUA_COMPAT_MODULE=1 -fPIC -I/usr/local/include/luajit-2.0/
3
3
LDFLAGS =-shared
4
- LIBS =-L/usr/local/lib -llua
4
+ LIBS =-L/usr/local/lib -lluajit -lpthread
5
5
OUTPUT =k.so
6
6
7
7
makefile =$(shell uname -s | tr A-Z a-z) .makefile
@@ -12,4 +12,4 @@ k.o: k.c kx/k.h makefile $(makefile)
12
12
kx/k.h kx/$(KARCH ) /c.o makefile $(makefile ) :; sh kx.sh
13
13
14
14
clean :; rm -f k.so
15
- test : $(OUTPUT ) test.lua makefile; lua test.lua
15
+ test : $(OUTPUT ) test.lua makefile; luajit test.lua
You can’t perform that action at this time.
0 commit comments