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

For loongarch, fix openssl build bug, always use linux64-mips64 as required.

This commit is contained in:
winlin 2022-08-06 17:26:55 +08:00
parent 1589858cb0
commit 079ac107f0

View file

@ -551,6 +551,8 @@ if [[ $SRS_SSL == YES && $SRS_USE_SYS_SSL != YES ]]; then
echo "Warning: Local openssl is on, ignore system openssl"
fi
fi
# Patch for loongarch mips64
g++ -dM -E - </dev/null |grep '#define __mips64 1' -q && OPENSSL_CONFIG="./Configure linux64-mips64"
# For RTC, we should use ASM to improve performance, not a little improving.
if [[ $SRS_RTC == NO || $SRS_NASM == NO ]]; then
OPENSSL_OPTIONS="$OPENSSL_OPTIONS -no-asm"