$OpenBSD: patch-config,v 1.6 2007/05/10 20:23:29 pedro Exp $ --- config.orig Thu May 10 10:14:46 2007 +++ config Thu May 10 10:15:23 2007 @@ -1,19 +1,18 @@ # Installation directories # System's libraries directory (where binary libraries are installed) -LUA_LIBDIR= /usr/local/lib/lua/5.1 +LUA_LIBDIR= $(LOCALBASE)/lib # Lua includes directory -LUA_INC= /usr/local/include/lua51 +LUA_INC= $(LOCALBASE)/include # OS dependent LIB_OPTION= -shared #for Linux #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X -LIBNAME= $T.so.$V +LIBNAME= $T.so # Compilation directives -WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings INCS= -I$(LUA_INC) -CFLAGS= $(WARN) $(INCS) -CC= gcc +CFLAGS+= -fPIC $(INCS) +CC= cc # $Id: patch-config,v 1.6 2007/05/10 20:23:29 pedro Exp $