2009-09-06 15:25:22 -04:00
|
|
|
$OpenBSD: patch-config,v 1.7 2009/09/06 19:25:22 jolan Exp $
|
|
|
|
--- config.orig Sun Sep 6 14:21:39 2009
|
|
|
|
+++ config Sun Sep 6 14:22:00 2009
|
|
|
|
@@ -1,24 +1,24 @@
|
2005-05-14 20:42:52 -04:00
|
|
|
# Installation directories
|
2009-09-06 15:25:22 -04:00
|
|
|
|
|
|
|
# Default installation prefix
|
|
|
|
-PREFIX=/usr/local
|
|
|
|
+#PREFIX=/usr/local
|
|
|
|
|
2005-05-14 20:42:52 -04:00
|
|
|
# System's libraries directory (where binary libraries are installed)
|
2009-09-06 15:25:22 -04:00
|
|
|
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
|
|
|
|
+LUA_LIBDIR= $(LOCALBASE)/lib/lua/5.1
|
|
|
|
|
2005-05-14 20:42:52 -04:00
|
|
|
# Lua includes directory
|
2009-09-06 15:25:22 -04:00
|
|
|
-LUA_INC= $(PREFIX)/include
|
2005-05-14 20:42:52 -04:00
|
|
|
+LUA_INC= $(LOCALBASE)/include
|
|
|
|
|
|
|
|
# OS dependent
|
2005-07-08 13:57:27 -04:00
|
|
|
LIB_OPTION= -shared #for Linux
|
2006-03-25 23:56:01 -05:00
|
|
|
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
|
|
|
|
|
|
|
|
-LIBNAME= $T.so.$V
|
2007-05-10 16:23:29 -04:00
|
|
|
+LIBNAME= $T.so
|
2005-05-14 20:42:52 -04:00
|
|
|
|
|
|
|
# Compilation directives
|
2009-09-06 15:25:22 -04:00
|
|
|
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
|
|
|
|
+#WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
|
2007-05-10 16:23:29 -04:00
|
|
|
INCS= -I$(LUA_INC)
|
2005-05-14 20:42:52 -04:00
|
|
|
-CFLAGS= $(WARN) $(INCS)
|
|
|
|
-CC= gcc
|
2007-05-10 16:23:29 -04:00
|
|
|
+CFLAGS+= -fPIC $(INCS)
|
2009-09-06 15:25:22 -04:00
|
|
|
+#CC= gcc
|
2006-03-25 23:56:01 -05:00
|
|
|
|
2009-09-06 15:25:22 -04:00
|
|
|
# $Id: patch-config,v 1.7 2009/09/06 19:25:22 jolan Exp $
|