From 92fb81003c34e1e4c4e9cc25cce93ce9af50ee96 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 15 Sep 2016 12:59:34 +0800 Subject: [PATCH] link crypto when use sys-ssl --- trunk/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/configure b/trunk/configure index 4a5e7b5b2..425b9b0f1 100755 --- a/trunk/configure +++ b/trunk/configure @@ -127,7 +127,7 @@ LibGperfRoot=""; LibGperfFile="" if [ $SRS_GPERF = YES ]; then LibGperfRoot="${SRS_OBJS_DIR}/gperf/include"; LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_and_profiler.a"; fi # the link options, always use static link SrsLinkOptions="-ldl"; -if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="${SrsLinkOptions} -lssl"; fi fi +if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="${SrsLinkOptions} -lssl -lcrypto"; fi fi # if static specified, add static # TODO: FIXME: remove static. if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; fi