$OpenBSD: patch-config,v 1.2 2005/07/08 17:57:27 jolan Exp $
--- config.orig	Wed May 25 07:55:32 2005
+++ config	Thu Jul  7 23:27:58 2005
@@ -1,22 +1,17 @@
 # Installation directories
 # System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= /usr/local/lib/lua/5.0
+LUA_LIBDIR= $(LOCALBASE)/lib
 # Lua includes directory
-LUA_INC= /usr/local/include/lua5
+LUA_INC= $(LOCALBASE)/include
 
 # OS dependent
 #LIB_OPTION= -bundle -undefined  dynamic_lookup #for MacOS X
 LIB_OPTION= -shared #for Linux
 
-COMPAT_DIR= ../compat/src
-
 # Compilation directives
 # On FreeBSD systems, the following line should be commented
-DLLIB= -ldl
+#DLLIB= -ldl
 #LUA_LIBS= -llua50 -lm
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
-INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
+INCS= -I$(LUA_INC)
 LIBS= $(LUA_LIBS) $(DLLIB)
-CFLAGS= $(WARN) $(INCS)
-CC= gcc
-
+CFLAGS+= $(WARN) $(INCS) -fPIC
