Pull lpeg and build it

This commit is contained in:
Henri DF
2016-03-04 17:52:01 -08:00
parent 9bbe692137
commit cc4837312e
3 changed files with 20 additions and 1 deletions

9
scripts/build-lpeg.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
gcc -O2 -fPIC -I$LUA_INCLUDE -c lpcap.c -o lpcap.o
gcc -O2 -fPIC -I$LUA_INCLUDE -c lpcode.c -o lpcode.o
gcc -O2 -fPIC -I$LUA_INCLUDE -c lpprint.c -o lpprint.o
gcc -O2 -fPIC -I$LUA_INCLUDE -c lptree.c -o lptree.o
gcc -O2 -fPIC -I$LUA_INCLUDE -c lpvm.c -o lpvm.o
gcc -shared -o lpeg.so -L/usr/local/lib lpcap.o lpcode.o lpprint.o lptree.o lpvm.o