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]

Re: PATCH: Support libtool -no-undefined under GNU/Linux.


On Feb  6, 2001, Fergus Henderson <fjh@cs.mu.oz.au> wrote:

> Probably there are existing programs that are built using libtool with
> `-no-undefined' but which do not explicitly link in `/lib/ld-linux.so.2'.
> This patch would cause such programs to break.

Indeed.  That's probably the reason why libtool doesn't use this flag
on GNU/Linux.

Mark, will you please revert your patch, so that libtool in the GCC
tree works properly on GNU/Linux.

> So I think this patch also requires some code in libtool to link in
> /lib/ld-linux.so.2 if needed.

The problem is that the name of the dynamic linker may change across
glibc versions.  I'm not sure I want to go down that road in libtool.
-no-undefined is a do-nothing on most platforms, anyway, so I don't
think it's a big deal for it to be a do-nothing on GNU/Linux too.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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