summaryrefslogtreecommitdiff
path: root/net/spserver/files/patch-openssl_Makefile
blob: d27254e612d4660e1fcd0d2671b84e0cffe31422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- openssl/Makefile.orig	2009-12-13 10:02:34.000000000 +0800
+++ openssl/Makefile	2013-09-08 21:03:07.000000000 +0800
@@ -1,11 +1,10 @@
 
 #--------------------------------------------------------------------
 
-CC = gcc
 AR = ar cru
-CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
+CFLAGS += -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
 SOFLAGS = -shared
-LDFLAGS = -lstdc++ -lpthread -lresolv
+LDFLAGS = -lstdc++ -lpthread
 
 LINKER = $(CC)
 LINT = lint -c
@@ -14,7 +13,7 @@ RM = /bin/rm -f
 OPENSSL_INCL = -I/usr/include/openssl/
 OPENSSL_LIB  = -L/usr/lib -lssl -lcrypto
 
-LIBEVENT_LIB  = -L$(HOME)/libevent -levent
+LIBEVENT_LIB  = -L%PREFIX%/lib -levent
 
 SPSERVER_INCL = -I../spserver
 SPSERVER_LIB  = -L../spserver -lspserver