mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ST: Replace macros with explicit code for better understanding. v7.0.7 (#4149)
Improvements for ST(State Threads): 1. ST: Use g++ for CXX compiler. 2. ST: Remove macros for clist. 3. ST: Remove macros for global thread and vp. 4. ST: Remove macros for vp queue operations. 5. ST: Remove macros for context switch. 6. ST: Remove macros for setjmp/longjmp. 7. ST: Remove macro for stack pad. 8. ST: Refine macro for valgrind. --------- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
0d76081430
commit
ff6a608099
15 changed files with 228 additions and 285 deletions
6
trunk/configure
vendored
6
trunk/configure
vendored
|
@ -128,7 +128,7 @@ fi
|
|||
|
||||
# Start to generate the Makefile.
|
||||
cat << END >> ${SRS_OBJS}/Makefile
|
||||
GCC = ${SRS_TOOL_CC}
|
||||
CC = ${SRS_TOOL_CC}
|
||||
CXX = ${SRS_TOOL_CXX}
|
||||
AR = ${SRS_TOOL_AR}
|
||||
LINK = ${SRS_TOOL_CXX}
|
||||
|
@ -514,7 +514,7 @@ cat << END > ${SRS_MAKEFILE}
|
|||
.PHONY: clean_srs clean_modules clean_openssl clean_srtp2 clean_opus clean_ffmpeg clean_st
|
||||
.PHONY: st ffmpeg
|
||||
|
||||
GCC = ${SRS_TOOL_CC}
|
||||
CC = ${SRS_TOOL_CC}
|
||||
CXX = ${SRS_TOOL_CXX}
|
||||
AR = ${SRS_TOOL_AR}
|
||||
LINK = ${SRS_TOOL_LD}
|
||||
|
@ -606,7 +606,7 @@ clean_st:
|
|||
st:
|
||||
@rm -f ${SRS_OBJS}/srs srs_utest
|
||||
@\$(MAKE)\$(JOBS) -C ${SRS_OBJS}/${SRS_PLATFORM}/st-srs clean
|
||||
@env EXTRA_CFLAGS="${_ST_EXTRA_CFLAGS}" \$(MAKE)\$(JOBS) -C ${SRS_OBJS}/${SRS_PLATFORM}/st-srs ${_ST_MAKE_ARGS} CC=\$(GCC) AR=\$(AR) LD=\$(LINK) RANDLIB=\$(RANDLIB)
|
||||
@env EXTRA_CFLAGS="${_ST_EXTRA_CFLAGS}" \$(MAKE)\$(JOBS) -C ${SRS_OBJS}/${SRS_PLATFORM}/st-srs ${_ST_MAKE_ARGS} CC=\$(CC) CXX=\$(CXX) AR=\$(AR) LD=\$(LINK) RANDLIB=\$(RANDLIB)
|
||||
@echo "Please rebuild srs by: make"
|
||||
|
||||
ffmpeg:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue