From 4bcd90d747bb200b7a9946b72bd0d833337c0964 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 15 Sep 2016 13:11:42 +0800 Subject: [PATCH] fix sys-ssl librtmp build bug. --- trunk/research/librtmp/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/research/librtmp/Makefile b/trunk/research/librtmp/Makefile index 9a5aefd76..15aa35f6d 100755 --- a/trunk/research/librtmp/Makefile +++ b/trunk/research/librtmp/Makefile @@ -70,6 +70,9 @@ endif ifeq ($(HANDSHAKE), SSL) SRS_LIBSSL_L = $(SRS_OBJS)/openssl/lib/libssl.a $(SRS_OBJS)/openssl/lib/libcrypto.a endif +ifneq ($(shell test -f $(SRS_OBJS)/openssl/lib/libssl.a && echo yes), yes) + SRS_LIBSSL_L = -lssl -lcrypt +endif ssl: @mkdir -p objs