$OpenBSD: patch-config,v 1.2 2011/06/08 14:23:11 gsoares Exp $ --- config.orig Fri Jun 3 11:17:04 2011 +++ config Tue Jun 7 11:48:34 2011 @@ -6,18 +6,18 @@ LUA_DIR= /usr/local/share/lua/5.0 # Lua includes directory LUA_INC= /usr/local/include # Expat includes directory -EXPAT_INC= /usr/local/include +EXPAT_INC= /usr/include # OS dependent -LIB_OPTION= -shared #for Linux +LIB_OPTION= -shared -fPIC #for Linux #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X -LIBNAME= $T.so.$V +LIBNAME= $T.so # Lua version number # (according to Lua 5.1 definition: # first version digit * 100 + second version digit # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501) -LUA_VERSION_NUM= 500 +LUA_VERSION_NUM= 501 COMPAT_DIR= ../compat/src # Compilation parameters @@ -31,6 +31,6 @@ CWARNS = -Wall -pedantic \ -Wshadow \ -Wwrite-strings -CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \ - -I$(COMPAT_DIR) -I$(EXPAT_INC) -CC = gcc +CFLAGS += $(CWARNS) -ansi -I$(LUA_INC) \ + -I$(COMPAT_DIR) -I$(EXPAT_INC) -shared -fPIC +CC ?= gcc