1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Remove MacOS compile option, for it's on use. It's caused by paralell make

This commit is contained in:
winlin 2017-03-01 12:39:42 +08:00
parent 121a2e5886
commit 16cde27a1e

7
trunk/configure vendored
View file

@ -95,17 +95,12 @@ CppStd="-ansi"
if [[ $SRS_EXPORT_LIBRTMP_PROJECT == YES ]]; then
LibraryCompile=" -fPIC"
fi
# For MacOS, disable the link warnings:
# srs_librtmp.a(srs_kernel_io.o) unable to open object file: No such file or directory
if [[ $SRS_OSX == YES ]]; then
CxxMacOS=" -D GCC_GENERATE_DEBUGGING_SYMBOLS=no"
fi
# performance of gprof
SrsGprof=""; SrsGprofLink=""; if [ $SRS_GPROF = YES ]; then SrsGprof=" -pg -lc_p"; SrsGprofLink=" -pg"; fi
# performance of gperf
SrsGperf=""; SrsGperfLink=""; if [ $SRS_GPERF = YES ]; then SrsGperfLink=" -lpthread"; fi
# the cxx flag generated.
CXXFLAGS="${CppStd}${WarnLevel}${GDBDebug}${LibraryCompile}${SrsGprof}${CxxMacOS}"
CXXFLAGS="${CppStd}${WarnLevel}${GDBDebug}${LibraryCompile}${SrsGprof}"
if [ $SRS_GPERF = YES ]; then CXXFLAGS="${CXXFLAGS} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"; fi
# Start to generate the Makefile.
cat << END > ${SRS_OBJS}/${SRS_MAKEFILE}