This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]