d08179c04b
- fix homepage - zap USE_LIBTOOL - use some variables provided by lua.port.mk
24 lines
593 B
Plaintext
24 lines
593 B
Plaintext
$OpenBSD: patch-makefile,v 1.3 2011/06/20 21:40:37 jasper Exp $
|
|
--- makefile.orig Mon Jun 20 23:35:56 2011
|
|
+++ makefile Mon Jun 20 23:36:51 2011
|
|
@@ -1,7 +1,7 @@
|
|
LIBNAME = lpeg
|
|
-LUADIR = /usr/include/lua5.1/
|
|
+LUADIR = ${LOCALBASE}/include/
|
|
|
|
-COPT = -O2 -DNDEBUG
|
|
+COPT = -O2 -DNDEBUG -fPIC -shared
|
|
|
|
CWARNS = -Wall -Wextra -pedantic \
|
|
-Waggregate-return \
|
|
@@ -21,8 +21,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
|