From 51447940443a74ca8ef31f1aa8d18b814a02c30b Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 4 Apr 2020 14:50:36 +0800 Subject: [PATCH] Detect older docker and disable SRTP ASM --- trunk/auto/depends.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 56b3818fb..7694da4a7 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -477,8 +477,12 @@ if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL != YES ]]; then if [[ $SRS_CROSS_BUILD == YES ]]; then OPENSSL_CONFIG="./Configure linux-armv4" elif [[ ! -f ${SRS_OBJS}/${SRS_PLATFORM}/openssl/lib/libssl.a ]]; then - # Try to use files for openssl 1.1.* + # For older docker, which does not support SRTP asm optimization. if [[ -f /usr/local/lib64/libssl.a ]]; then + # TODO: FIMXE: Remove it in future, do not need to be compatible with older docker. + if [[ $SRS_SRTP_ASM == YES ]]; then + SRS_SRTP_ASM=NO && echo "Warning: Disable SRTP ASM optimization, please update docker"; + fi; (mkdir -p ${SRS_OBJS}/${SRS_PLATFORM}/openssl/lib && cd ${SRS_OBJS}/${SRS_PLATFORM}/openssl/lib && ln -sf /usr/local/lib64/libssl.a && ln -sf /usr/local/lib64/libcrypto.a && mkdir -p /usr/local/lib64/pkgconfig && ln -sf /usr/local/lib64/pkgconfig)