From a506bab87b5b427544a62fa226706f7f83ca1fdb Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 3 Apr 2023 21:17:45 +0800 Subject: [PATCH] feat(sctp): add note for libtool --- trunk/auto/depends.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index ed2237b0db..0017ae2f0e 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -551,7 +551,18 @@ if [[ $SRS_SCTP == YES ]]; then ) fi # check status - ret=$?; if [[ $ret -ne 0 ]]; then echo "Build usrsctp failed, ret=$ret"; exit $ret; fi + ret=$? + if [[ $ret -ne 0 ]]; then + echo Build usrsctp failed, ret=$ret"; + if [[ $OS_IS_CENTOS == YES ]]; then + echo "Please install libtool by:" + echo " yum install -y libtool" + elif [[ $OS_IS_UBUNTU == YES ]]; then + echo "Please install libtool by:" + echo " apt install -y libtool" + fi + exit $ret; + fi # Always update the links. (cd ${SRS_OBJS} && rm -rf sctp && ln -sf ${SRS_PLATFORM}/usrsctp/_release sctp) if [ ! -f ${SRS_OBJS}/sctp/lib/libusrsctp.a ]; then echo "Build usrsctp failed."; exit -1; fi