openbsd-ports/textproc/luaexpat/patches/patch-config
2009-08-15 18:19:02 +00:00

34 lines
1000 B
Plaintext

$OpenBSD: patch-config,v 1.1.1.1 2009/08/15 18:19:02 jolan Exp $
--- config.orig Thu Jun 8 15:41:48 2006
+++ config Sat Aug 15 13:02:52 2009
@@ -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
@@ -32,5 +32,5 @@ CWARNS = -Wall -pedantic \
-Wwrite-strings
CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \
- -I$(COMPAT_DIR) -I$(EXPAT_INC)
+ -I$(COMPAT_DIR) -I$(EXPAT_INC) -shared -fPIC
CC = gcc