--- 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