From 1e4f22f83d5dd3df7d97b80f2caf9ad02b86f3a8 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 19 Dec 2019 14:30:34 +0800 Subject: [PATCH] Fix random build failed bug for modules. --- README.md | 3 ++- trunk/configure | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09c82fa20..8279a2d05 100755 --- a/README.md +++ b/README.md @@ -145,7 +145,8 @@ For previous versions, please read: ## V3 changes -* v3.0, 2019-12-18, Fix [#1520][bug #1520] and [#1223][bug #1223], bug for origin cluster 3+ servers. 3.0.74 +* v3.0, 2019-12-19, Fix random build failed bug for modules. +* v3.0, 2019-12-19, Fix [#1520][bug #1520] and [#1223][bug #1223], bug for origin cluster 3+ servers. 3.0.74 * v3.0, 2019-12-18, For [#1042][bug #1042], add test for RAW AVC protocol. * v3.0, 2019-12-18, Detect whether flash enabled for srs-player. 3.0.73 * v3.0, 2019-12-17, Fix HTTP CORS bug when sending response for OPTIONS. 3.0.72 diff --git a/trunk/configure b/trunk/configure index 16e85a6c5..23119b755 100755 --- a/trunk/configure +++ b/trunk/configure @@ -83,6 +83,13 @@ for SRS_MODULE in ${SRS_MODULES[*]}; do fi done +# generate extra phony for each modules. +cat << END > ${SRS_OBJS}/${SRS_MAKEFILE} + +.PHONY: $__mphonys + +END + ##################################################################################### # build tools or compiler args. # enable gdb debug @@ -112,7 +119,7 @@ if [[ $SRS_GCOV == YES ]]; then CXXFLAGS="${CXXFLAGS} ${SrsGcov}"; fi # Start to generate the Makefile. -cat << END > ${SRS_OBJS}/${SRS_MAKEFILE} +cat << END >> ${SRS_OBJS}/${SRS_MAKEFILE} GCC = gcc CXX = g++ AR = ar