144e2930d7
use FLAVOR=lua52 to use lua 5.2 with these ports.
45 lines
919 B
Plaintext
45 lines
919 B
Plaintext
$OpenBSD: patch-config,v 1.6 2012/07/10 15:22:45 jasper Exp $
|
|
--- config.orig Mon Oct 15 06:21:05 2007
|
|
+++ config Sun Jul 8 20:27:56 2012
|
|
@@ -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${MODLUA_INCL_DIR}
|
|
#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
|