From: Darren Tucker Date: Tue, 8 Mar 2022 09:04:06 +0000 (+1100) Subject: Default to not using sandbox when cross compiling. X-Git-Tag: V_9_0_P1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf5275452a950869cb90eeac7d220b01f77b12e;p=thirdparty%2Fopenssh-portable.git Default to not using sandbox when cross compiling. On most systems poll(2) does not work when the number of FDs is reduced with setrlimit, so assume it doesn't when cross compiling and we can't run the test. bz#3398. --- diff --git a/configure.ac b/configure.ac index 17fb1e609..a165d0879 100644 --- a/configure.ac +++ b/configure.ac @@ -3574,8 +3574,8 @@ AC_RUN_IFELSE( select_works_with_rlimit=yes], [AC_MSG_RESULT([no]) select_works_with_rlimit=no], - [AC_MSG_WARN([cross compiling: assuming yes]) - select_works_with_rlimit=yes] + [AC_MSG_WARN([cross compiling: assuming no]) + select_works_with_rlimit=no] ) AC_CHECK_MEMBERS([struct pollfd.fd], [], [], [[