winlin

link crypto when use sys-ssl

@@ -127,7 +127,7 @@ LibGperfRoot=""; LibGperfFile="" @@ -127,7 +127,7 @@ LibGperfRoot=""; LibGperfFile=""
127 if [ $SRS_GPERF = YES ]; then LibGperfRoot="${SRS_OBJS_DIR}/gperf/include"; LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_and_profiler.a"; fi 127 if [ $SRS_GPERF = YES ]; then LibGperfRoot="${SRS_OBJS_DIR}/gperf/include"; LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_and_profiler.a"; fi
128 # the link options, always use static link 128 # the link options, always use static link
129 SrsLinkOptions="-ldl"; 129 SrsLinkOptions="-ldl";
130 -if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="${SrsLinkOptions} -lssl"; fi fi 130 +if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="${SrsLinkOptions} -lssl -lcrypto"; fi fi
131 # if static specified, add static 131 # if static specified, add static
132 # TODO: FIXME: remove static. 132 # TODO: FIXME: remove static.
133 if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; fi 133 if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; fi