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

Refine build script for SRT to avoid warnings. v4.0.243

This commit is contained in:
winlin 2022-02-15 18:35:25 +08:00
parent eeb44ebbe9
commit 0a848430e9
4 changed files with 9 additions and 2 deletions

View file

@ -603,6 +603,12 @@ fi
# srtp
#####################################################################################
SRTP_OPTIONS=""
# To eliminate warnings, see https://stackoverflow.com/a/34208904/17679565
# was built for newer macOS version (11.6) than being linked (11.0)
if [[ $SRS_OSX == YES ]]; then
export MACOSX_DEPLOYMENT_TARGET=11.0
echo "Set MACOSX_DEPLOYMENT_TARGET to avoid warnings"
fi
# If use ASM for SRTP, we enable openssl(with ASM).
if [[ $SRS_SRTP_ASM == YES ]]; then
SRTP_OPTIONS="--enable-openssl"