openbsd-ports/devel/lpeg/patches/patch-makefile
2012-07-10 15:22:44 +00:00

32 lines
813 B
Plaintext

$OpenBSD: patch-makefile,v 1.7 2012/07/10 15:22:44 jasper Exp $
--- makefile.orig Wed Feb 16 16:03:25 2011
+++ makefile Sat Jul 7 15:02:14 2012
@@ -1,14 +1,13 @@
LIBNAME = lpeg
-LUADIR = /usr/include/lua5.1/
+LUADIR = ${MODLUA_INCL_DIR}
-COPT = -O2 -DNDEBUG
+COPT = -O2 -DNDEBUG -fPIC -shared
-CWARNS = -Wall -Wextra -pedantic \
+CWARNS = -Wall -pedantic \
-Waggregate-return \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
- -Wdeclaration-after-statement \
-Wdisabled-optimization \
-Wmissing-prototypes \
-Wnested-externs \
@@ -21,8 +20,7 @@ CWARNS = -Wall -Wextra -pedantic \
# -Wunreachable-code \
-CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR)
-CC = gcc
+CFLAGS += $(CWARNS) $(COPT) -ansi -I$(LUADIR)
# For Linux
DLLFLAGS = -shared -fpic