1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/net/spserver/files/patch-matrixssl_Makefile
Vanilla I. Shu afc99aa14a 1: Add support of STAGE.
2: do not overwrite CFLAGS.
2013-09-24 16:47:45 +00:00

38 lines
1.1 KiB
Plaintext

--- matrixssl/Makefile.orig 2009-12-13 10:02:35.000000000 +0800
+++ matrixssl/Makefile 2013-09-08 21:03:12.000000000 +0800
@@ -1,20 +1,19 @@
#--------------------------------------------------------------------
-CC = gcc
AR = ar cru
-CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
+CFLAGS += -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC -Dlinux
SOFLAGS = -shared
-LDFLAGS = -lstdc++ -lpthread -lresolv
+LDFLAGS = -lstdc++ -lpthread
LINKER = $(CC)
LINT = lint -c
RM = /bin/rm -f
-MASSL_INCL = -I$(HOME)/matrixssl-1-8-3-open/
-MASSL_LIB = -L$(HOME)/matrixssl-1-8-3-open/src -lmatrixssl
+MASSL_INCL = -I%PREFIX%/include
+MASSL_LIB = -L%PREFIX%/lib -lmatrixsslstatic
-LIBEVENT_LIB = -L$(HOME)/libevent -levent
+LIBEVENT_LIB = -L%PREFIX%/lib -levent
SPSERVER_INCL = -I../spserver
SPSERVER_LIB = -L../spserver -lspserver
@@ -37,7 +36,7 @@ libspmatrixssl.so: $(LIBOBJS)
$(LINKER) $(SOFLAGS) $^ -o $@
testechos: testechos.o
- $(LINKER) $(LDFLAGS) $^ -L. -lspmatrixssl -o $@
+ $(LINKER) $(LDFLAGS) $^ -L. -lspmatrixssl -lmatrixsslstatic -o $@
clean:
@( $(RM) *.o vgcore.* core core.* $(TARGET) )