Running a 32bit backtrace test against a 64bit binary doesn't work.
Only a 64bit binary can backtrace a 32bit binary. So disable the
biarch check that inserts -m64 for a 32bit host.
https://sourceware.org/bugzilla/show_bug.cgi?id=24158
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2021-03-20 Mark Wielaard <mark@klomp.org>
+
+ * configure.ac: Remove -m64 on 32bit target comments for
+ utrace_BIARCH check.
+
2021-03-14 Mark Wielaard <mark@klomp.org>
* configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING.
fi
# On a 64-bit host where can can use $CC -m32, we'll run two sets of tests.
-# Likewise in a 32-bit build on a host where $CC -m64 works.
utrace_BIARCH
-# `$utrace_biarch' will be `-m64' even on an uniarch i386 machine.
CC_BIARCH="$CC $utrace_biarch"
AC_SUBST([CC_BIARCH])
+2022-03-20 Mark Wielaard <mark@klomp.org>
+
+ * biarch.m4: Don't check whether -m64 works for 32bit host.
+
2022-03-14 Mark Wielaard <mark@klomp.org>
* biarch.m4: Use AS_HELP_STRING instead of AC_HELP_STRING.
AS_IF([test $utrace_biarch_forced = yes], [dnl
utrace_cv_cc_biarch=yes
AC_MSG_NOTICE([enabling biarch tests regardless using $biarch_CC])], [dnl
-AS_IF([test x$utrace_cv_CC_m32 != xnone], [dnl
+AS_IF([test x$utrace_cv_CC_m32 != xnone -a x$utrace_cv_host64 != xno], [dnl
AC_CACHE_CHECK([whether $biarch_CC makes executables we can run],
utrace_cv_cc_biarch, [dnl
save_CC="$CC"