[PATCH] Fix linking C executables/shared libraries which use __attribute__((cleanup ()))

Alexandre Oliva aoliva@redhat.com
Sat Mar 27 17:48:00 GMT 2004


On Mar 27, 2004, Jakub Jelinek <jakub@redhat.com> wrote:

> 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
> 	    Jakub Jelinek  <jakub@redhat.com>

> 	* gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
> 	-lgcc --as-needed -lgcc_s --no-as-needed by default.
> 	* configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
> 	* configure: Rebuilt.
> 	* config.in: Rebuilt.

The configury bits are ok.  gcc.c looks good as well, but I don't
think I have the authority to approve it.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the Gcc-patches mailing list