45 lines
920 B
Plaintext
45 lines
920 B
Plaintext
$OpenBSD: patch-config,v 1.5 2009/09/06 13:46:58 jolan Exp $
|
|
--- config.orig Sun Oct 14 23:21:05 2007
|
|
+++ config Sun Sep 6 08:25:57 2009
|
|
@@ -6,17 +6,17 @@
|
|
# Output file names
|
|
#
|
|
EXT=so
|
|
-SOCKET_V=2.0.2
|
|
-MIME_V=1.0.2
|
|
-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/usr/local/include/lua5.1
|
|
+LUAINC=-I$(LOCALBASE)/include
|
|
#LUAINC=-Ilua-5.1.1/src
|
|
|
|
#------
|
|
@@ -49,11 +49,12 @@ INSTALL_EXEC=cp
|
|
#------
|
|
# Compiler and linker settings
|
|
# for Linux
|
|
-CC=gcc
|
|
+CC=cc
|
|
DEF=-DLUASOCKET_DEBUG
|
|
-CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
|
|
-LDFLAGS=-O -shared -fpic
|
|
-LD=gcc
|
|
+CFLAGS+= $(LUAINC) -fPIC -DPIC -DUNIX_HAS_SUN_LEN
|
|
+LDFLAGS=-O -shared -fPIC
|
|
+LD=cc
|
|
+
|
|
|
|
#------
|
|
# End of makefile configuration
|