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

Build: Support --shared-srt

This commit is contained in:
winlin 2021-06-01 12:29:22 +08:00
parent 7e657ae654
commit 785d2fce08
6 changed files with 15 additions and 8 deletions

View file

@ -656,7 +656,7 @@ if [[ $SRS_RTC == YES ]]; then
fi
#####################################################################################
# ffmpeg-fix, for WebRTC to transcode AAC with Opus.
# ffmpeg-fit, for WebRTC to transcode AAC with Opus.
#####################################################################################
if [[ $SRS_FFMPEG_FIT == YES ]]; then
FFMPEG_OPTIONS=""
@ -743,7 +743,12 @@ if [[ $SRS_SRT == YES ]]; then
exit -1;
fi
# Always disable c++11 for libsrt, because only the srt-app requres it.
LIBSRT_OPTIONS="--disable-app --enable-shared=0 --enable-static --enable-c++11=0"
LIBSRT_OPTIONS="--disable-app --enable-static --enable-c++11=0"
if [[ $SRS_SHARED_SRT == YES ]]; then
LIBSRT_OPTIONS="$LIBSRT_OPTIONS --enable-shared=1"
else
LIBSRT_OPTIONS="$LIBSRT_OPTIONS --enable-shared=0"
fi
# Start build libsrt.
rm -rf ${SRS_OBJS}/${SRS_PLATFORM}/srt-1-fit && cd ${SRS_OBJS}/${SRS_PLATFORM} &&
cp -R ../../3rdparty/srt-1-fit srt-1-fit && cd srt-1-fit &&