This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fixinc needs check for -atexit-
- To: gcc-patches at gcc dot gnu dot org, law at cygnus dot com, phdm at macqel dot be, autogen at linuxbox dot com
- Subject: Re: fixinc needs check for -atexit-
- From: korbb at sourceware dot cygnus dot com
- Date: Mon, 29 Nov 1999 06:53:00 -0800 (PST)
- Reply-To: "Bruce Korb" <ddsinc09 at ix dot netcom dot com>
> In message <199911261043.LAA23049@mail.macqel.be>you write:
> > Problem :
> > cc -o fixincl *.o ../../libiberty
> > /libiberty.a ../../libiberty/libiberty.a
> > server.o: In function `server_setup':
> > server.c:224: undefined reference to `atexit'
> > Could not install binary fixincludes.
> >
> > Fix (part 2) :
> > Fri Nov 26 10:50:05 1999 Philippe De Muyter <phdm@macqel.be>
> >
> > * configure.in (AC_CHECK_FUNCS): Check also for `atexit'.
> > * configure, config.in : Files regenerated.
> I don't see how this actually fixes the problem since none of the gcc or
> fixinc code will look at the value produced by configure.
Hi Philippe,
If you add a #ifdef guard around the call to atexit,
then your patch could be applied. What development system
are you working on that does not have an `atexit' call?
libiberty can only be used if there is a way to code around
the missing `atexit'. There really is no alternative I
know about.
Regards,
Bruce