summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-05-22 08:15:06 +0000
committerTim Harder <radhermit@gentoo.org>2013-05-22 08:15:06 +0000
commitcbd54f51791c39290bb64bbc0b4c067cfe893d85 (patch)
treef2ab623c931f80fabcdbfc83aef93957b0f9757c /dev-lua/lpeg/files
parentUse updated patch by Alejandro Dubrovsky <alito@organicrobot.com> to solve bu... (diff)
downloadgentoo-2-cbd54f51791c39290bb64bbc0b4c067cfe893d85.tar.gz
gentoo-2-cbd54f51791c39290bb64bbc0b4c067cfe893d85.tar.bz2
gentoo-2-cbd54f51791c39290bb64bbc0b4c067cfe893d85.zip
Initial import (bug #469300 by Raphaël Droz).
(Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-lua/lpeg/files')
-rw-r--r--dev-lua/lpeg/files/lpeg-0.12-makefile.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-lua/lpeg/files/lpeg-0.12-makefile.patch b/dev-lua/lpeg/files/lpeg-0.12-makefile.patch
new file mode 100644
index 000000000000..5734de9f55d8
--- /dev/null
+++ b/dev-lua/lpeg/files/lpeg-0.12-makefile.patch
@@ -0,0 +1,37 @@
+--- lpeg-0.12/makefile
++++ lpeg-0.12/makefile
+@@ -1,7 +1,7 @@
+ LIBNAME = lpeg
+ LUADIR = /usr/include/lua5.1/
+
+-COPT = -O2
++#COPT = -O2
+ # COPT = -DLPEG_DEBUG -g
+
+ CWARNS = -Wall -Wextra -pedantic \
+@@ -22,21 +22,21 @@
+ # -Wunreachable-code \
+
+
+-CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
++CFLAGS += $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
+ CC = gcc
+
+ FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
+
+ # For Linux
+ linux:
+- make lpeg.so "DLLFLAGS = -shared -fPIC"
++ $(MAKE) lpeg.so "DLLFLAGS = -shared -fPIC"
+
+ # For Mac OS
+ macosx:
+- make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
++ $(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
+
+ lpeg.so: $(FILES)
+- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
++ env $(CC) $(CFLAGS) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so
+
+ $(FILES): makefile
+