bug-libtool
[Top][All Lists]
Advanced

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

Re: hardcode_direct_absolute description


From: Bruno Haible
Subject: Re: hardcode_direct_absolute description
Date: Wed, 24 May 2006 22:33:18 +0200
User-agent: KMail/1.5

Albert Chin-A-Young wrote:
> > 2) If DIR is a relative pathname, it is first made absolute before being
> >    hardcoded in the binary. In other words, it's not
> > DIR/libNAME${shared_ext} which is hardcoded, but `cd DIR &&
> > pwd`/libNAME${shared_ext}.
>
> Really?
>   $ cc a.c /opt/TWWfsw/zlib11/lib/../lib/libz.sl
>   $ chatr a.out
>   ...
>          shared library list:
>              static    /opt/TWWfsw/zlib11/lib/../lib/libz.sl.2
>              dynamic   /usr/lib/libc.2
>   ...

OK, you got me. I only meant to say that if DIR is not an absolute pathname,
the current directrory is prepended. As you point out, ".." (and probably
symlinks too) are apparently not resolved at link time.

Bruno





reply via email to

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