mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support use other g++ when configure.
This commit is contained in:
parent
cd7e6cc321
commit
72d477f466
5 changed files with 63 additions and 19 deletions
15
trunk/configure
vendored
15
trunk/configure
vendored
|
@ -52,7 +52,7 @@ help:
|
|||
@echo " bandwidth build the bandwidth test client tool."
|
||||
|
||||
clean:
|
||||
(rm -f Makefile; cd ${SRS_OBJS}; rm -rf srs bandwidth Makefile *.hpp src st_*_load)
|
||||
(rm -f Makefile; cd ${SRS_OBJS}; rm -rf srs bandwidth Makefile *.hpp src st_*_load research)
|
||||
|
||||
server: _prepare_dir
|
||||
@echo "build the srs(simple rtmp server) over st(state-threads)"
|
||||
|
@ -81,10 +81,10 @@ CppStd="-ansi"
|
|||
CXXFLAGS="${CppStd} ${WarnLevel} ${GDBDebug}"
|
||||
#CXXFLAGS="${CppStd} ${WarnLevel} ${GDBDebug} ${Performance}"
|
||||
cat << END > ${SRS_OBJS}/${SRS_MAKEFILE}
|
||||
CXXFLAGS = ${CXXFLAGS}
|
||||
GCC = g++
|
||||
LINK = \$(GCC)
|
||||
AR = ar
|
||||
CXXFLAGS ?= ${CXXFLAGS}
|
||||
CXX ?= g++
|
||||
LINK ?= \$(CXX)
|
||||
AR ?= ar
|
||||
|
||||
.PHONY: default srs bandwidth
|
||||
|
||||
|
@ -174,6 +174,11 @@ if [ $SRS_HTTP = YES ]; then
|
|||
else
|
||||
echo -e "${YELLOW}warning: without http hooks callback over CherryPy support${BLACK}"
|
||||
fi
|
||||
if [ $SRS_RESEARCH = YES ]; then
|
||||
echo -e "${GREEN}research tools are builded${BLACK}"
|
||||
else
|
||||
echo -e "${BLACK}note: research tools are not builded${BLACK}"
|
||||
fi
|
||||
|
||||
# mkdir dirs
|
||||
mkdir -p ${SRS_OBJS}/logs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue