From 9c1dfb79d318889335fcbe9b5c11ea2d7e660e78 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 6 Apr 2020 21:37:37 +0800 Subject: [PATCH] Fix gperf build bug --- trunk/auto/depends.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 1ed7e3aa3..1b0e52001 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -750,5 +750,6 @@ if [ $SRS_GPERF = YES ]; then ret=$?; if [[ $ret -ne 0 ]]; then echo "Build gperftools-2.1 failed, ret=$ret"; exit $ret; fi # Always update the links. (cd ${SRS_OBJS} && rm -rf pprof && ln -sf ${SRS_PLATFORM}/gperf/bin/pprof pprof) - if [ ! -f ${SRS_OBJS}/gperf/bin/pprof ]; then echo "Build gperftools-2.1 failed."; exit -1; fi + (cd ${SRS_OBJS} && rm -rf gperf && ln -sf ${SRS_PLATFORM}/gperftools-2.1/_release gperf) + if [ ! -f ${SRS_OBJS}/pprof ]; then echo "Build gperftools-2.1 failed."; exit -1; fi fi