Re: [PATCH] add rm conftest.o in lib/autoconf/lang.m4

"Jeff Shimoda [Marbles504]" <[email protected]> Wed, 22 Jun 2022 11:32:09 -0400
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <CAF9GnoVnf=Q2+e0LR9ZxgZ_vXtohaJ-agJnhe6x8HwJDbX5uEQ@mail.gmail.com>
On Wed, Jun 22, 2022 at 1:11 AM Paul Eggert <[email protected]> wrote:
> Don't you also need to remove conftest.obj? Or is it conftest.$ac_objext
> and require _AC_COMPILER_OBJEXT? Or the latter may be a bridge too far.

Hi Paul, I assumed we don't need to remove conftest.obj because it's
not produced by most compilers when the "-o foo" option is used,
although I suppose it can't hurt to remove it as well.  It also seems
we can't use $ac_objext here because this macro AC_COMPILER_EXEEXT
must be run before the macro AC_COMPILER_OBJEXT which defines
$ac_objext, so I think we must simply hardcode conftest.o.