Mike Frysinger
2017-May-25 03:21 UTC
[PATCH] configure: actually set cache vars when cross-compiling
From: Mike Frysinger <vapier at chromium.org> The cross-compiling fallback message says it's assuming the test passed, but it didn't actually set the cache var which causes later tests to fail. --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5cfea38c0a6c..895c5211ea93 100644 --- a/configure.ac +++ b/configure.ac @@ -3162,7 +3162,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])] + [AC_MSG_WARN([cross compiling: assuming yes]) + select_works_with_rlimit=yes] ) AC_MSG_CHECKING([if setrlimit(RLIMIT_NOFILE,{0,0}) works]) @@ -3188,7 +3189,8 @@ AC_RUN_IFELSE( rlimit_nofile_zero_works=yes], [AC_MSG_RESULT([no]) rlimit_nofile_zero_works=no], - [AC_MSG_WARN([cross compiling: assuming yes])] + [AC_MSG_WARN([cross compiling: assuming yes]) + rlimit_nofile_zero_works=yes] ) AC_MSG_CHECKING([if setrlimit RLIMIT_FSIZE works]) -- 2.12.0
Damien Miller
2017-May-25 04:36 UTC
[PATCH] configure: actually set cache vars when cross-compiling
applied - thanks On Wed, 24 May 2017, Mike Frysinger wrote:> From: Mike Frysinger <vapier at chromium.org> > > The cross-compiling fallback message says it's assuming the test > passed, but it didn't actually set the cache var which causes > later tests to fail. > --- > configure.ac | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 5cfea38c0a6c..895c5211ea93 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -3162,7 +3162,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])] > + [AC_MSG_WARN([cross compiling: assuming yes]) > + select_works_with_rlimit=yes] > ) > > AC_MSG_CHECKING([if setrlimit(RLIMIT_NOFILE,{0,0}) works]) > @@ -3188,7 +3189,8 @@ AC_RUN_IFELSE( > rlimit_nofile_zero_works=yes], > [AC_MSG_RESULT([no]) > rlimit_nofile_zero_works=no], > - [AC_MSG_WARN([cross compiling: assuming yes])] > + [AC_MSG_WARN([cross compiling: assuming yes]) > + rlimit_nofile_zero_works=yes] > ) > > AC_MSG_CHECKING([if setrlimit RLIMIT_FSIZE works]) > -- > 2.12.0 > > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >