Bug 788241 configure sometimes fails with "rm: cannot lstat 'conftest.exe': Permission denied" followed by "C++ compiler cannot create executables" - port bug 758732 from Firefox. rs=Callek,a=Standard8
authorMark Banner <bugzilla@standard8.plus.com>
Sat, 08 Sep 2012 14:41:36 +0200
changeset 13552 6ac7d8c3e2f02eaa6ac2f1dd2b804b4945f83c7a
parent 13551 161c4dc3487c2b686500b0f6e2cb582f563a3e61
child 13553 9e078e25d4751c4e7b5e15dab42bff6c0015b327
push id3
push userbugzilla@standard8.plus.com
push dateFri, 16 Nov 2012 10:54:06 +0000
reviewersCallek, Standard8
bugs788241, 758732
Bug 788241 configure sometimes fails with "rm: cannot lstat 'conftest.exe': Permission denied" followed by "C++ compiler cannot create executables" - port bug 758732 from Firefox. rs=Callek,a=Standard8
configure.in
--- a/configure.in
+++ b/configure.in
@@ -308,18 +308,18 @@ if test -n "$CROSS_COMPILE" && test "$ta
     AC_CHECK_PROGS(LD, $LD "${target_alias}-ld" "${target}-ld", :)
     AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", :)
     AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", :)
     AC_DEFINE(CROSS_COMPILE)
 else
     AC_PROG_CC
     case "$target" in
     *-mingw*)
-      # Work around the conftest.exe access problem on Windows (bug 545015)
-      sleep 1
+      # Work around the conftest.exe access problem on Windows
+      sleep 2
     esac
     AC_PROG_CXX
     AC_PROG_RANLIB
     MOZ_PATH_PROGS(AS, $AS as, $CC)
     AC_CHECK_PROGS(AR, ar, :)
     AC_CHECK_PROGS(LD, ld, :)
     AC_CHECK_PROGS(STRIP, strip, :)
     AC_CHECK_PROGS(WINDRES, windres, :)