diff -urN sqlbf.orig/Makefile sqlbf/Makefile
--- sqlbf.orig/Makefile	2002-07-12 23:52:38.000000000 +0800
+++ sqlbf/Makefile	2014-05-26 11:59:52.583091399 +0800
@@ -2,8 +2,8 @@
 CC = gcc -O6
 
 SQLBF_OBJS = bf.o crypto.o sqlbf.o
-CFLAGS = -Iinclude
-LDFLAGS = -lssl -lm -lpthread 
+CFLAGS += -Iinclude
+LDFLAGS += -lssl -lm -lpthread -lcrypto
 
 all: SQLBF
 
