shithub: openh264

Download patch

ref: b048f78ee70e91512aa888ea1d673921c1eaeaaa
parent: 418b00eebef248000fc80f0f3e9988a9c042a784
parent: 24d4f0fe9a13303135d045b9f2bb3917cdebd3c9
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Wed Jul 15 05:13:49 EDT 2020

Merge pull request #3267 from bkuhls/mips

fix mips build

--- a/build/arch.mk
+++ b/build/arch.mk
@@ -41,7 +41,7 @@
 ifeq ($(ENABLE_MMI), Yes)
 ENABLE_MMI = $(shell $(SRC_PATH)build/mips-simd-check.sh $(CC) mmi)
 ifeq ($(ENABLE_MMI), Yes)
-CFLAGS += -DHAVE_MMI -Wa,-mloongson-mmi,-mloongson-ext
+CFLAGS += -DHAVE_MMI -march=loongson3a
 endif
 endif
 #msa
--- a/build/mips-simd-check.sh
+++ b/build/mips-simd-check.sh
@@ -15,7 +15,7 @@
 if [ $2 == "mmi" ]
 then
    echo "void main(void){ __asm__ volatile(\"punpcklhw \$f0, \$f0, \$f0\"); }" > $TMPC
-   $1 -Wa,-mloongson-mmi $TMPC -o $TMPO &> /dev/null
+   $1 -march=loongson3a $TMPC -o $TMPO &> /dev/null
    if test -s $TMPO
    then
       echo "Yes"