1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Detect older docker and disable SRTP ASM

This commit is contained in:
winlin 2020-04-04 14:50:36 +08:00
parent c666933cd2
commit 5144794044

View file

@ -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)