diff options
| author | Jonas Toth <gentoo@jonas-toth.eu> | 2024-08-24 20:50:52 +0200 |
|---|---|---|
| committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-08-30 17:50:47 +0300 |
| commit | 95424d06c056a62aeaac23d6958dca04739e9d20 (patch) | |
| tree | 0a5ff0a08004a832fe960a4fba9a96db85a5c147 /dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch | |
| parent | 8815c672d5935f0711f64a9bcbce4c58f4a6fd94 (diff) | |
| download | gentoo-95424d06c056a62aeaac23d6958dca04739e9d20.tar.gz gentoo-95424d06c056a62aeaac23d6958dca04739e9d20.tar.bz2 gentoo-95424d06c056a62aeaac23d6958dca04739e9d20.zip | |
dev-lua/lpeg: add 1.1.0
The original source code location gives certificate validation errors
when downloading with `wget`. Therefore, I switched to the luarocks
repository.
Closes: https://bugs.gentoo.org/936599
Signed-off-by: Jonas Toth <gentoo@jonas-toth.eu>
Closes: https://github.com/gentoo/gentoo/pull/38282
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch')
| -rw-r--r-- | dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch b/dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch new file mode 100644 index 000000000000..afef6f6c05b5 --- /dev/null +++ b/dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch @@ -0,0 +1,31 @@ +Respect user CFLAGS and LDFLAGS. + +--- lpeg-1.1.0/makefile ++++ lpeg-1.1.0/makefile +@@ -1,7 +1,7 @@ + LIBNAME = lpeg + LUADIR = ../lua/ + +-COPT = -O2 -DNDEBUG ++COPT = -DNDEBUG + # COPT = -O0 -DLPEG_DEBUG -g + + CWARNS = -Wall -Wextra -pedantic \ +@@ -22,7 +22,7 @@ + # -Wunreachable-code \ + + +-CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC ++CFLAGS += $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC + CC = gcc + + FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o +@@ -36,7 +36,7 @@ + $(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup" + + lpeg.so: $(FILES) +- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so ++ env $(CC) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so + + $(FILES): makefile + |
