diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-12 22:22:14 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-12 22:23:07 +0200 |
commit | f42c67b39d05f610b590063d32522d45a3d3ded6 (patch) | |
tree | 9dc90c39b40d5a372daf70dd57dae3f6272ddd0a /community/lua-lpeg/build-static-lib.patch | |
parent | 04170b314686f4117edf1052d5ef951f570de158 (diff) | |
download | aports-f42c67b39d05f610b590063d32522d45a3d3ded6.tar.bz2 aports-f42c67b39d05f610b590063d32522d45a3d3ded6.tar.xz |
community/lua-lpeg: add -dev subpackage with static libs
Diffstat (limited to 'community/lua-lpeg/build-static-lib.patch')
-rw-r--r-- | community/lua-lpeg/build-static-lib.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/lua-lpeg/build-static-lib.patch b/community/lua-lpeg/build-static-lib.patch new file mode 100644 index 0000000000..d109ae52c0 --- /dev/null +++ b/community/lua-lpeg/build-static-lib.patch @@ -0,0 +1,29 @@ +--- a/makefile ++++ b/makefile +@@ -24,12 +24,15 @@ + + CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC + CC = gcc ++AR = ar ++RANLIB = ranlib + + FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o + + # For Linux + linux: + make lpeg.so "DLLFLAGS = -shared -fPIC" ++ make lpeg.a + + # For Mac OS + macosx: +@@ -37,6 +40,10 @@ + + lpeg.so: $(FILES) + env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so ++ ++lpeg.a: $(FILES) ++ env $(AR) rc lpeg.a $(FILES) ++ env $(RANLIB) lpeg.a + + $(FILES): makefile + |