libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of libtool for linking executables - rpath problem


From: Bruno Haible
Subject: Re: use of libtool for linking executables - rpath problem
Date: Mon, 19 Nov 2001 22:40:37 +0100 (CET)

Paul Eggert writes:

> > 6) Let each package search for 'libtool' in $PATH and use it if found,
> >    and fall back to 1) if not found....
> > 
> >    This works only when the same C compiler is used to build the package
> >    as was used to configure libtool.
> 
> Can you please explain why (6) has this limitation?

The following depend on the C compiler:

  - the flag used to pass -rpath to the linker. Sometimes it's
    "-Wl,", sometimes it's "-Qoption,ld,", sometimes it's empty.

  - on AIX, also the way shared libraries are supported.

> Is this something that can easily be fixed by modifying libtool?

Yes, if one is willing to copy some pieces of libtool.m4 to ltmain.sh,
so that the configured libtool has information about all compilers
that run on the particular platform.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]