mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch '4.0release' into develop
This commit is contained in:
commit
f29db522c1
1 changed files with 6 additions and 2 deletions
|
@ -324,10 +324,14 @@ fi
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
|
if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
|
||||||
# check the cross build flag file, if flag changed, need to rebuild the st.
|
# check the cross build flag file, if flag changed, need to rebuild the st.
|
||||||
_ST_MAKE=linux-debug && _ST_EXTRA_CFLAGS="-DMD_HAVE_EPOLL"
|
_ST_MAKE=linux-debug && _ST_EXTRA_CFLAGS="-DMD_HAVE_EPOLL" && _ST_LD=${SRS_TOOL_LD}
|
||||||
if [[ $SRS_VALGRIND == YES ]]; then
|
if [[ $SRS_VALGRIND == YES ]]; then
|
||||||
_ST_EXTRA_CFLAGS="$_ST_EXTRA_CFLAGS -DMD_VALGRIND"
|
_ST_EXTRA_CFLAGS="$_ST_EXTRA_CFLAGS -DMD_VALGRIND"
|
||||||
fi
|
fi
|
||||||
|
# for osx, use darwin for st, donot use epoll.
|
||||||
|
if [[ $SRS_OSX == YES ]]; then
|
||||||
|
_ST_MAKE=darwin-debug && _ST_EXTRA_CFLAGS="-DMD_HAVE_KQUEUE" && _ST_LD=${SRS_TOOL_CC}
|
||||||
|
fi
|
||||||
# Pass the global extra flags.
|
# Pass the global extra flags.
|
||||||
if [[ $SRS_EXTRA_FLAGS != '' ]]; then
|
if [[ $SRS_EXTRA_FLAGS != '' ]]; then
|
||||||
_ST_EXTRA_CFLAGS="$_ST_EXTRA_CFLAGS $SRS_EXTRA_FLAGS"
|
_ST_EXTRA_CFLAGS="$_ST_EXTRA_CFLAGS $SRS_EXTRA_FLAGS"
|
||||||
|
@ -341,7 +345,7 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
|
||||||
rm -rf ${SRS_OBJS}/st-srs && cd ${SRS_OBJS} &&
|
rm -rf ${SRS_OBJS}/st-srs && cd ${SRS_OBJS} &&
|
||||||
ln -sf ../3rdparty/st-srs && cd st-srs &&
|
ln -sf ../3rdparty/st-srs && cd st-srs &&
|
||||||
make clean && make ${_ST_MAKE} EXTRA_CFLAGS="${_ST_EXTRA_CFLAGS}" \
|
make clean && make ${_ST_MAKE} EXTRA_CFLAGS="${_ST_EXTRA_CFLAGS}" \
|
||||||
CC=${SRS_TOOL_CC} AR=${SRS_TOOL_AR} LD=${SRS_TOOL_LD} RANDLIB=${SRS_TOOL_RANDLIB} &&
|
CC=${SRS_TOOL_CC} AR=${SRS_TOOL_AR} LD=${_ST_LD} RANDLIB=${SRS_TOOL_RANDLIB} &&
|
||||||
cd .. && rm -f st && ln -sf st-srs/obj st
|
cd .. && rm -f st && ln -sf st-srs/obj st
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue