fixinc needs check for -atexit-

korbb@sourceware.cygnus.com korbb@sourceware.cygnus.com
Mon Nov 29 06:53:00 GMT 1999


>   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


More information about the Gcc-patches mailing list