mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 07:28:38 +00:00
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>
31 lines
688 B
Diff
31 lines
688 B
Diff
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
|
|
|