Re: [PATCH] add rm conftest.o in lib/autoconf/lang.m4
"Jeff Shimoda [Marbles504]" <[email protected]> Wed, 29 Jun 2022 17:22:11 -0400
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Message-ID | <CAF9GnoXqeoVWm48fQZPhQmcTiJkk17rwbgzFsGnaCmXbkxsNrQ@mail.gmail.com> |
> 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. Just following up with this. Any thoughts? If you'd like I can open up a bug in Savanna for this. Thanks -Jeff On Wed, Jun 22, 2022 at 11:32 AM Jeff Shimoda [Marbles504] <[email protected]> wrote: > > 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.