This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

Re: Why does libc.so use absolute path?


OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp> writes:

>  Hello.
> 
>  I have a question: Why does libc.so in glibc-2.0.7pre5 use absolute
> path instead of relative path? I want to use it both on a native
> i586-gnu environment and on a cross i586-gnu environment, but if
> libc.so is

Relative paths do not work since they would be relative to the current
workign directory.  Put a file names libc.so.6 in the current dir and
remove the path from the entry in libc.so.  You'll see that nothing
works anymore.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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