diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-16 21:23:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-16 21:23:20 +0100 |
commit | fab849d1daed0ba7f2ac497d07985c3dbb692543 (patch) | |
tree | 10baa743a5340b42ad538dd19d48669ccac209b1 /dev-lua/lpeg/files/lpeg-1.0.2-makefile.patch | |
parent | 73c318acdaf6f8309d68bd266051e6dd1f1bd787 (diff) |
gentoo resync : 16.06.2019
Diffstat (limited to 'dev-lua/lpeg/files/lpeg-1.0.2-makefile.patch')
-rw-r--r-- | dev-lua/lpeg/files/lpeg-1.0.2-makefile.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-lua/lpeg/files/lpeg-1.0.2-makefile.patch b/dev-lua/lpeg/files/lpeg-1.0.2-makefile.patch new file mode 100644 index 000000000000..ec8150443da4 --- /dev/null +++ b/dev-lua/lpeg/files/lpeg-1.0.2-makefile.patch @@ -0,0 +1,31 @@ +Respect user CFLAGS and LDFLAGS. + +--- lpeg-1.0.2/makefile ++++ lpeg-1.0.2/makefile +@@ -1,7 +1,7 @@ + LIBNAME = lpeg + LUADIR = ../lua/ + +-COPT = -O2 -DNDEBUG ++COPT = -DNDEBUG + # COPT = -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 + |