mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
Allow use libst.so for ST is MPL license.
This commit is contained in:
parent
7460729c0e
commit
01870cce56
5 changed files with 15 additions and 3 deletions
|
@ -146,6 +146,7 @@ For previous versions, please read:
|
||||||
|
|
||||||
## V3 changes
|
## V3 changes
|
||||||
|
|
||||||
|
* v3.0, 2020-01-26, Allow use libst.so for ST is MPL license.
|
||||||
* v3.0, 2020-01-26, Fix [#607][bug #607], set RTMP identifying recursive depth to 3.
|
* v3.0, 2020-01-26, Fix [#607][bug #607], set RTMP identifying recursive depth to 3.
|
||||||
* v3.0, 2020-01-25, Fix [#878][bug #878], remove deprecated #EXT-X-ALLOW-CACHE for HLS. 3.0.108
|
* v3.0, 2020-01-25, Fix [#878][bug #878], remove deprecated #EXT-X-ALLOW-CACHE for HLS. 3.0.108
|
||||||
* v3.0, 2020-01-25, Fix [#703][bug #703], drop video data util sps/pps. 3.0.107
|
* v3.0, 2020-01-25, Fix [#703][bug #703], drop video data util sps/pps. 3.0.107
|
||||||
|
|
|
@ -329,7 +329,7 @@ fi
|
||||||
# Affected users should upgrade to OpenSSL 1.1.0e. Users unable to immediately
|
# Affected users should upgrade to OpenSSL 1.1.0e. Users unable to immediately
|
||||||
# upgrade can alternatively recompile OpenSSL with -DOPENSSL_NO_HEARTBEATS.
|
# upgrade can alternatively recompile OpenSSL with -DOPENSSL_NO_HEARTBEATS.
|
||||||
if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL != YES ]]; then
|
if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL != YES ]]; then
|
||||||
OPENSSL_HOTFIX="-DOPENSSL_NO_HEARTBEATS"
|
OPENSSL_OPTIONS="-no-shared -no-threads -no-asm -DOPENSSL_NO_HEARTBEATS"
|
||||||
OPENSSL_CONFIG="./config"
|
OPENSSL_CONFIG="./config"
|
||||||
# https://stackoverflow.com/questions/15539062/cross-compiling-of-openssl-for-linux-arm-v5te-linux-gnueabi-toolchain
|
# https://stackoverflow.com/questions/15539062/cross-compiling-of-openssl-for-linux-arm-v5te-linux-gnueabi-toolchain
|
||||||
if [[ $SRS_CROSS_BUILD == YES ]]; then
|
if [[ $SRS_CROSS_BUILD == YES ]]; then
|
||||||
|
@ -351,7 +351,7 @@ if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL != YES ]]; then
|
||||||
(
|
(
|
||||||
rm -rf ${SRS_OBJS}/openssl-1.1.0e && cd ${SRS_OBJS} &&
|
rm -rf ${SRS_OBJS}/openssl-1.1.0e && cd ${SRS_OBJS} &&
|
||||||
unzip -q ../3rdparty/openssl-1.1.0e.zip && cd openssl-1.1.0e &&
|
unzip -q ../3rdparty/openssl-1.1.0e.zip && cd openssl-1.1.0e &&
|
||||||
${OPENSSL_CONFIG} --prefix=`pwd`/_release -no-shared -no-threads -no-asm $OPENSSL_HOTFIX &&
|
${OPENSSL_CONFIG} --prefix=`pwd`/_release $OPENSSL_OPTIONS &&
|
||||||
make CC=${SRS_TOOL_CC} AR="${SRS_TOOL_AR} -rs" LD=${SRS_TOOL_LD} RANDLIB=${SRS_TOOL_RANDLIB} && make install_sw &&
|
make CC=${SRS_TOOL_CC} AR="${SRS_TOOL_AR} -rs" LD=${SRS_TOOL_LD} RANDLIB=${SRS_TOOL_RANDLIB} && make install_sw &&
|
||||||
cd .. && rm -rf openssl && ln -sf openssl-1.1.0e/_release openssl
|
cd .. && rm -rf openssl && ln -sf openssl-1.1.0e/_release openssl
|
||||||
)
|
)
|
||||||
|
|
|
@ -47,6 +47,8 @@ SRS_FFMPEG_STUB=NO
|
||||||
SRS_PREFIX=/usr/local/srs
|
SRS_PREFIX=/usr/local/srs
|
||||||
SRS_JOBS=1
|
SRS_JOBS=1
|
||||||
SRS_STATIC=NO
|
SRS_STATIC=NO
|
||||||
|
# If enabled, link shared libraries for libst.so which uses MPL license.
|
||||||
|
SRS_SHARED_ST=NO
|
||||||
# whether enable the gcov
|
# whether enable the gcov
|
||||||
SRS_GCOV=NO
|
SRS_GCOV=NO
|
||||||
# whether enable the log verbose/info/trace level.
|
# whether enable the log verbose/info/trace level.
|
||||||
|
@ -180,6 +182,7 @@ Conflicts:
|
||||||
|
|
||||||
Experts:
|
Experts:
|
||||||
--use-sys-ssl Do not compile ssl, use system ssl(-lssl) if required.
|
--use-sys-ssl Do not compile ssl, use system ssl(-lssl) if required.
|
||||||
|
--use-shared-st Use link shared libraries for ST which uses MPL license.
|
||||||
--export-librtmp-project=<path> Export srs-librtmp to specified project in path.
|
--export-librtmp-project=<path> Export srs-librtmp to specified project in path.
|
||||||
--export-librtmp-single=<path> Export srs-librtmp to a single file(.h+.cpp) in path.
|
--export-librtmp-single=<path> Export srs-librtmp to a single file(.h+.cpp) in path.
|
||||||
|
|
||||||
|
@ -267,6 +270,8 @@ function parse_user_option() {
|
||||||
--full) SRS_ENABLE_ALL=YES ;;
|
--full) SRS_ENABLE_ALL=YES ;;
|
||||||
|
|
||||||
--use-sys-ssl) SRS_USE_SYS_SSL=YES ;;
|
--use-sys-ssl) SRS_USE_SYS_SSL=YES ;;
|
||||||
|
--use-shared-st) SRS_SHARED_ST=YES ;;
|
||||||
|
|
||||||
--memory-watch) SRS_MEM_WATCH=YES ;;
|
--memory-watch) SRS_MEM_WATCH=YES ;;
|
||||||
--export-librtmp-project) SRS_EXPORT_LIBRTMP_PROJECT=${value} ;;
|
--export-librtmp-project) SRS_EXPORT_LIBRTMP_PROJECT=${value} ;;
|
||||||
--export-librtmp-single) SRS_EXPORT_LIBRTMP_SINGLE=${value} ;;
|
--export-librtmp-single) SRS_EXPORT_LIBRTMP_SINGLE=${value} ;;
|
||||||
|
@ -529,6 +534,7 @@ SRS_AUTO_CONFIGURE="--prefix=${SRS_PREFIX}"
|
||||||
if [ $SRS_GPERF_CP = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-gcp"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-gcp"; fi
|
if [ $SRS_GPERF_CP = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-gcp"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-gcp"; fi
|
||||||
if [ $SRS_GPROF = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-gprof"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-gprof"; fi
|
if [ $SRS_GPROF = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-gprof"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-gprof"; fi
|
||||||
if [ $SRS_STATIC = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --static"; fi
|
if [ $SRS_STATIC = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --static"; fi
|
||||||
|
if [ $SRS_SHARED_ST = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --use-shared-st"; fi
|
||||||
if [ $SRS_LOG_VERBOSE = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --log-verbose"; fi
|
if [ $SRS_LOG_VERBOSE = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --log-verbose"; fi
|
||||||
if [ $SRS_LOG_INFO = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --log-info"; fi
|
if [ $SRS_LOG_INFO = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --log-info"; fi
|
||||||
if [ $SRS_LOG_TRACE = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --log-trace"; fi
|
if [ $SRS_LOG_TRACE = YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --log-trace"; fi
|
||||||
|
|
|
@ -167,7 +167,11 @@ echo "" >> ${FILE}
|
||||||
echo "# link all depends libraries" >> ${FILE}
|
echo "# link all depends libraries" >> ${FILE}
|
||||||
echo -n "DEPS_LIBRARIES_FILES = " >> ${FILE}
|
echo -n "DEPS_LIBRARIES_FILES = " >> ${FILE}
|
||||||
for item in ${ModuleLibFiles[*]}; do
|
for item in ${ModuleLibFiles[*]}; do
|
||||||
|
if [[ -f ${item} ]]; then
|
||||||
echo -n "${SRS_TRUNK_PREFIX}/${item} " >> ${FILE}
|
echo -n "${SRS_TRUNK_PREFIX}/${item} " >> ${FILE}
|
||||||
|
else
|
||||||
|
echo -n "${item} " >> ${FILE}
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
echo "" >> ${FILE}; echo "" >> ${FILE}
|
echo "" >> ${FILE}; echo "" >> ${FILE}
|
||||||
#
|
#
|
||||||
|
|
1
trunk/configure
vendored
1
trunk/configure
vendored
|
@ -144,6 +144,7 @@ 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
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in a new issue