50 lines
1002 B
Plaintext
50 lines
1002 B
Plaintext
$OpenBSD: patch-config,v 1.3 2006/09/23 18:05:31 pedro Exp $
|
|
--- config.orig Thu Apr 27 00:23:21 2006
|
|
+++ config Sat Sep 23 14:14:27 2006
|
|
@@ -6,22 +6,22 @@
|
|
# Output file names
|
|
#
|
|
EXT=so
|
|
-SOCKET_V=2.0.1
|
|
-MIME_V=1.0.1
|
|
-SOCKET_SO=socket.$(EXT).$(SOCKET_V)
|
|
-MIME_SO=mime.$(EXT).$(MIME_V)
|
|
-UNIX_SO=unix.$(EXT)
|
|
+SOCKET_V=2.0
|
|
+MIME_V=1.0
|
|
+SOCKET_SO= socket.so
|
|
+MIME_SO= mime.so
|
|
+UNIX_SO= unix.so
|
|
|
|
#------
|
|
# Lua includes and libraries
|
|
#
|
|
-LUAINC=-I/usr/local/include/lua50
|
|
+LUAINC= -I$(LOCALBASE)/include
|
|
#LUAINC=-I/usr/local/include/lua5.1
|
|
|
|
#------
|
|
# Compat-5.1 directory
|
|
#
|
|
-COMPAT=compat-5.1r5
|
|
+#COMPAT=compat-5.1r5
|
|
|
|
#------
|
|
# Top of your Lua installation
|
|
@@ -48,11 +48,11 @@ INSTALL_EXEC=cp
|
|
#------
|
|
# Compiler and linker settings
|
|
# for Linux
|
|
-CC=gcc
|
|
+CC=cc
|
|
DEF=-DLUASOCKET_DEBUG
|
|
-CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
|
|
-LDFLAGS=-O -shared -fpic
|
|
-LD=gcc
|
|
+CFLAGS+= $(LUAINC) -fPIC -DPIC
|
|
+LDFLAGS=-O -shared -fPIC
|
|
+LD=cc
|
|
|
|
#------
|
|
# End of makefile configuration
|