$OpenBSD: patch-src_Makefile,v 1.1 2006/07/30 04:25:41 pedro Exp $
--- src/Makefile.orig	Thu Jul 27 12:27:04 2006
+++ src/Makefile	Thu Jul 27 12:48:49 2006
@@ -7,8 +7,8 @@
 # Your platform. See PLATS for possible values.
 PLAT= none
 
-CC= gcc
-CFLAGS= -O2 -Wall $(MYCFLAGS)
+CC= cc
+CFLAGS+= $(MYCFLAGS)
 AR= ar rcu
 RANLIB= ranlib
 RM= rm -f
@@ -86,7 +86,7 @@ ansi:
 	$(MAKE) all MYCFLAGS=-DLUA_ANSI
 
 bsd:
-	$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"
+	$(MAKE) all MYCFLAGS=-DLUA_USE_BSD MYLIBS="-Wl,-E -ledit -lcurses"
 
 generic:
 	$(MAKE) all MYCFLAGS=
