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

For #307, fast build openssl

This commit is contained in:
winlin 2020-03-28 21:33:47 +08:00
parent c1e124786c
commit 0fd75434a6
2 changed files with 11 additions and 1 deletions

View file

@ -476,6 +476,10 @@ if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL != YES ]]; then
ln -sf /usr/local/include/openssl)
fi
fi
# For osx, if exists openssl, use it.
if [[ $SRS_OSX == YES && -f ${SRS_OBJS}/openssl-1.1.0e/_release/lib/libssl.a ]]; then
(cd ${SRS_OBJS} && rm -rf openssl && ln -sf openssl-1.1.0e/_release openssl)
fi
# cross build not specified, if exists flag, need to rebuild for no-arm platform.
if [[ -f ${SRS_OBJS}/openssl/lib/libssl.a ]]; then
echo "Openssl-1.1.0e is ok.";