mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
Support static link c++ libraries. 4.0.32
This commit is contained in:
parent
be5d76009e
commit
6314c273ff
3 changed files with 16 additions and 4 deletions
|
@ -159,6 +159,7 @@ For previous versions, please read:
|
||||||
|
|
||||||
## V4 changes
|
## V4 changes
|
||||||
|
|
||||||
|
* v4.0, 2020-06-24, Support static link c++ libraries. 4.0.32
|
||||||
* v4.0, 2020-06-23, Change log cid from int to string. 4.0.31
|
* v4.0, 2020-06-23, Change log cid from int to string. 4.0.31
|
||||||
* v4.0, 2020-06-13, GB28181 with JitterBuffer support. 4.0.30
|
* v4.0, 2020-06-13, GB28181 with JitterBuffer support. 4.0.30
|
||||||
* v4.0, 2020-06-03, Support enable C++11. 4.0.29
|
* v4.0, 2020-06-03, Support enable C++11. 4.0.29
|
||||||
|
|
17
trunk/configure
vendored
17
trunk/configure
vendored
|
@ -136,20 +136,24 @@ END
|
||||||
# st(state-threads) the basic network library for SRS.
|
# st(state-threads) the basic network library for SRS.
|
||||||
LibSTRoot="${SRS_OBJS_DIR}/st"; LibSTfile="${LibSTRoot}/libst.a"
|
LibSTRoot="${SRS_OBJS_DIR}/st"; LibSTfile="${LibSTRoot}/libst.a"
|
||||||
if [[ $SRS_SHARED_ST == YES ]]; then LibSTfile="-lst"; fi
|
if [[ $SRS_SHARED_ST == YES ]]; then LibSTfile="-lst"; fi
|
||||||
|
|
||||||
# srtp
|
# srtp
|
||||||
if [[ $SRS_RTC == YES ]]; then
|
if [[ $SRS_RTC == YES ]]; then
|
||||||
LibSrtpRoot="${SRS_OBJS_DIR}/srtp2/include"; LibSrtpFile="${SRS_OBJS_DIR}/srtp2/lib/libsrtp2.a"
|
LibSrtpRoot="${SRS_OBJS_DIR}/srtp2/include"; LibSrtpFile="${SRS_OBJS_DIR}/srtp2/lib/libsrtp2.a"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# FFMPEG for WebRTC transcoding, such as aac to opus.
|
# FFMPEG for WebRTC transcoding, such as aac to opus.
|
||||||
if [[ $SRS_FFMPEG_FIT == YES ]]; then
|
if [[ $SRS_FFMPEG_FIT == YES ]]; then
|
||||||
LibFfmpegRoot="${SRS_OBJS_DIR}/ffmpeg/include"; LibFfmpegFile="${SRS_OBJS_DIR}/ffmpeg/lib/libavcodec.a ${SRS_OBJS_DIR}/ffmpeg/lib/libswresample.a ${SRS_OBJS_DIR}/ffmpeg/lib/libavutil.a"
|
LibFfmpegRoot="${SRS_OBJS_DIR}/ffmpeg/include"; LibFfmpegFile="${SRS_OBJS_DIR}/ffmpeg/lib/libavcodec.a ${SRS_OBJS_DIR}/ffmpeg/lib/libswresample.a ${SRS_OBJS_DIR}/ffmpeg/lib/libavutil.a"
|
||||||
LibFfmpegRoot="${LibFfmpegRoot} ${SRS_OBJS_DIR}/opus/include"; LibFfmpegFile="${LibFfmpegFile} ${SRS_OBJS_DIR}/opus/lib/libopus.a"
|
LibFfmpegRoot="${LibFfmpegRoot} ${SRS_OBJS_DIR}/opus/include"; LibFfmpegFile="${LibFfmpegFile} ${SRS_OBJS_DIR}/opus/lib/libopus.a"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# openssl-1.1.0e, for the RTMP complex handshake.
|
# openssl-1.1.0e, for the RTMP complex handshake.
|
||||||
LibSSLRoot="";LibSSLfile=""
|
LibSSLRoot="";LibSSLfile=""
|
||||||
if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL == NO ]]; then
|
if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL == NO ]]; then
|
||||||
LibSSLRoot="${SRS_OBJS_DIR}/openssl/include"; LibSSLfile="${SRS_OBJS_DIR}/openssl/lib/libssl.a ${SRS_OBJS_DIR}/openssl/lib/libcrypto.a";
|
LibSSLRoot="${SRS_OBJS_DIR}/openssl/include"; LibSSLfile="${SRS_OBJS_DIR}/openssl/lib/libssl.a ${SRS_OBJS_DIR}/openssl/lib/libcrypto.a";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# gperftools-2.1, for mem check and mem/cpu profile
|
# gperftools-2.1, for mem check and mem/cpu profile
|
||||||
LibGperfRoot=""; LibGperfFile=""
|
LibGperfRoot=""; LibGperfFile=""
|
||||||
if [ $SRS_GPERF = YES ]; then
|
if [ $SRS_GPERF = YES ]; then
|
||||||
|
@ -158,28 +162,35 @@ fi
|
||||||
if [ $SRS_GPERF_MD = YES ]; then
|
if [ $SRS_GPERF_MD = YES ]; then
|
||||||
LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_debug.a";
|
LibGperfFile="${SRS_OBJS_DIR}/gperf/lib/libtcmalloc_debug.a";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# srt code path
|
# srt code path
|
||||||
if [[ $SRS_SRT == YES ]]; then
|
if [[ $SRS_SRT == YES ]]; then
|
||||||
LibSRTRoot="${SRS_WORKDIR}/src/srt"; LibSRTfile="${SRS_OBJS_DIR}/srt/lib/libsrt.a"
|
LibSRTRoot="${SRS_WORKDIR}/src/srt"; LibSRTfile="${SRS_OBJS_DIR}/srt/lib/libsrt.a"
|
||||||
if [[ $SRS_SHARED_SRT == YES ]]; then LibSRTfile="-lsrt"; fi
|
if [[ $SRS_SHARED_SRT == YES ]]; then LibSRTfile="-lsrt"; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# the link options, always use static link
|
# the link options, always use static link
|
||||||
SrsLinkOptions="-ldl";
|
SrsLinkOptions="-ldl";
|
||||||
if [[ $SRS_SRT == YES || $SRS_RTC == YES ]]; then
|
if [[ $SRS_SRT == YES || $SRS_RTC == YES ]]; then
|
||||||
SrsLinkOptions="${SrsLinkOptions} -lpthread";
|
SrsLinkOptions="${SrsLinkOptions} -lpthread";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL == YES ]]; then
|
if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL == YES ]]; then
|
||||||
SrsLinkOptions="${SrsLinkOptions} -lssl -lcrypto";
|
SrsLinkOptions="${SrsLinkOptions} -lssl -lcrypto";
|
||||||
fi
|
fi
|
||||||
# if static specified, add static
|
|
||||||
# TODO: FIXME: remove static.
|
# Static link the c++ libraries, for user who build SRS by a new version of gcc,
|
||||||
|
# so we need to link the c++ libraries staticly but not all.
|
||||||
|
# @see https://stackoverflow.com/a/26107550
|
||||||
if [ $SRS_STATIC = YES ]; then
|
if [ $SRS_STATIC = YES ]; then
|
||||||
SrsLinkOptions="${SrsLinkOptions} -static";
|
SrsLinkOptions="${SrsLinkOptions} -static-libstdc++";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For coverage.
|
# For coverage.
|
||||||
if [[ $SRS_GCOV == YES ]]; then
|
if [[ $SRS_GCOV == YES ]]; then
|
||||||
SrsLinkOptions="${SrsLinkOptions} ${SrsGcov}";
|
SrsLinkOptions="${SrsLinkOptions} ${SrsGcov}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For FFMPEG/RTC.
|
# For FFMPEG/RTC.
|
||||||
if [[ $SRS_RTC == YES && $SRS_NASM == NO && $SRS_OSX == NO ]]; then
|
if [[ $SRS_RTC == YES && $SRS_NASM == NO && $SRS_OSX == NO ]]; then
|
||||||
SrsLinkOptions="${SrsLinkOptions} -lrt";
|
SrsLinkOptions="${SrsLinkOptions} -lrt";
|
||||||
|
|
|
@ -24,6 +24,6 @@
|
||||||
#ifndef SRS_CORE_VERSION4_HPP
|
#ifndef SRS_CORE_VERSION4_HPP
|
||||||
#define SRS_CORE_VERSION4_HPP
|
#define SRS_CORE_VERSION4_HPP
|
||||||
|
|
||||||
#define SRS_VERSION4_REVISION 31
|
#define SRS_VERSION4_REVISION 32
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue