[MPlayer-dev-eng] [PATCH] configure: set minimum arch to i586 on --enable-runtime-cpudetection

KO Myung-Hun komh78 at gmail.com
Wed Oct 14 10:35:22 EEST 2020


__atomic_fecth_add(___sync_fetch_and_add) builtin requires i586 at least.
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 1882f208c..4b8ec235f 100755
--- a/configure
+++ b/configure
@@ -2291,8 +2291,8 @@ case "$host_arch" in
     fi
   else # if test "$_runtime_cpudetection" = no
     _mcpu="$cpuopt=generic"
-    # at least i486 required, for bswap instruction
-    _march="-march=i486"
+    # at least i586 required, for __atomic_fetch_add builtin
+    _march="-march=i586"
     cflag_check $_mcpu || _mcpu="$cpuopt=i686"
     cflag_check $_mcpu || _mcpu=""
     cflag_check $_march $_mcpu || _march=""
-- 
2.22.0



More information about the MPlayer-dev-eng mailing list