Skip to content

Commit

Permalink
feat(sctp): add note for libtool
Browse files Browse the repository at this point in the history
  • Loading branch information
johzzy committed Apr 4, 2023
1 parent ac50f55 commit 4a55287
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion trunk/auto/depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a55287

Please sign in to comment.