正在显示
2 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -129,7 +129,7 @@ if [ $SRS_GPERF = YES ]; then LibGperfRoot="${SRS_OBJS_DIR}/gperf/include"; LibG | @@ -129,7 +129,7 @@ if [ $SRS_GPERF = YES ]; then LibGperfRoot="${SRS_OBJS_DIR}/gperf/include"; LibG | ||
| 129 | if [ $SRS_GPERF_MD = YES ]; then LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_debug.a"; fi | 129 | if [ $SRS_GPERF_MD = YES ]; then LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_debug.a"; fi |
| 130 | # the link options, always use static link | 130 | # the link options, always use static link |
| 131 | SrsLinkOptions="-ldl"; | 131 | SrsLinkOptions="-ldl"; |
| 132 | -if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="${SrsLinkOptions} -lssl"; fi fi | 132 | +if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="${SrsLinkOptions} -lssl -lcrypto"; fi fi |
| 133 | # if static specified, add static | 133 | # if static specified, add static |
| 134 | # TODO: FIXME: remove static. | 134 | # TODO: FIXME: remove static. |
| 135 | if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; fi | 135 | if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; fi |
| @@ -70,6 +70,9 @@ endif | @@ -70,6 +70,9 @@ endif | ||
| 70 | ifeq ($(HANDSHAKE), SSL) | 70 | ifeq ($(HANDSHAKE), SSL) |
| 71 | SRS_LIBSSL_L = $(SRS_OBJS)/openssl/lib/libssl.a $(SRS_OBJS)/openssl/lib/libcrypto.a | 71 | SRS_LIBSSL_L = $(SRS_OBJS)/openssl/lib/libssl.a $(SRS_OBJS)/openssl/lib/libcrypto.a |
| 72 | endif | 72 | endif |
| 73 | +ifneq ($(shell test -f $(SRS_OBJS)/openssl/lib/libssl.a && echo yes), yes) | ||
| 74 | + SRS_LIBSSL_L = -lssl -lcrypto | ||
| 75 | +endif | ||
| 73 | 76 | ||
| 74 | ssl: | 77 | ssl: |
| 75 | @mkdir -p objs | 78 | @mkdir -p objs |
-
请 注册 或 登录 后发表评论