diff options
author | davidovski <david@davidovski.xyz> | 2022-04-04 12:10:43 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-04-04 12:10:43 +0100 |
commit | 92790a96688344c9f6fd6dadbaad73c1f88804a0 (patch) | |
tree | d6a1357a110475d8f6e39040aeae02920696e827 /extra/lua-lpeg/build-static-lib.patch | |
parent | d093bc7b86a8ef1f149ac413d3d40d3cb728ad21 (diff) |
fixed network manager
Diffstat (limited to 'extra/lua-lpeg/build-static-lib.patch')
-rw-r--r-- | extra/lua-lpeg/build-static-lib.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/lua-lpeg/build-static-lib.patch b/extra/lua-lpeg/build-static-lib.patch new file mode 100644 index 0000000..d8a8f8c --- /dev/null +++ b/extra/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 + |