Skip to content

Instantly share code, notes, and snippets.

@anddam
Last active December 15, 2015 14:49
Show Gist options
  • Save anddam/5277157 to your computer and use it in GitHub Desktop.
Save anddam/5277157 to your computer and use it in GitHub Desktop.
lpeg porting to mp
me@biboop /o/l/v/m/b/_/l/w/lpeg-0.11> grep CFLAG makefile
CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC -Os `/opt/local/bin/pkg-config lua --cflags`
me@biboop /o/l/v/m/b/_/l/w/lpeg-0.11> mpdo make
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wdisabled-optimization -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -O2 -ansi -I/usr/include/lua5.1/ -fPIC -Os `/opt/local/bin/pkg-config lua --cflags` -c -o lpvm.o lpvm.c
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wdisabled-optimization -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -O2 -ansi -I/usr/include/lua5.1/ -fPIC -Os `/opt/local/bin/pkg-config lua --cflags` -c -o lpcap.o lpcap.c
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wdisabled-optimization -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -O2 -ansi -I/usr/include/lua5.1/ -fPIC -Os `/opt/local/bin/pkg-config lua --cflags` -c -o lptree.o lptree.c
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wdisabled-optimization -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -O2 -ansi -I/usr/include/lua5.1/ -fPIC -Os `/opt/local/bin/pkg-config lua --cflags` -c -o lpcode.o lpcode.c
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wdisabled-optimization -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -O2 -ansi -I/usr/include/lua5.1/ -fPIC -Os `/opt/local/bin/pkg-config lua --cflags` -c -o lpprint.o lpprint.c
env gcc -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names `/opt/local/bin/pkg-config lua --libs` lpvm.o lpcap.o lptree.o lpcode.o lpprint.o -o lpeg.so
me@biboop /o/l/v/m/b/_/l/w/lpeg-0.11>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment