Source: rsync
Version: 3.2.0-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

rsync fails to cross build from source, because the configure script
confuses "build" and "host" when it decides whether to check for simd
instructions. It attempts to enable simd whenever one builds on amd64,
but it should attempt to enable simd whenever one builds for amd64.
Please consider applying the attached patch to fix that.

Helmut
--- rsync-3.2.3.orig/configure.ac
+++ rsync-3.2.3/configure.ac
@@ -211,7 +211,7 @@
 
 if test x"$enable_simd" != x"no"; then
     # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
-    if test x"$build_cpu" = x"x86_64"; then
+    if test x"$host_cpu" = x"x86_64"; then
 	AC_LANG(C++)
 	AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
 #include <immintrin.h>

Reply via email to