Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 1996 14:45:23 -0700 (PDT)
From:      Ernest Hua <hua@chromatic.com>
To:        scott@statsci.com
Cc:        <chuckr@glue.umd.edu>, Chuck@chromatic.com, Robey@chromatic.com, freebsd-ports@freebsd.org, kientzle@netcom.com
Subject:   Re: Linux async vs. FreeBSD sync (fwd)
Message-ID:  <199608282145.OAA13298@server1.chromatic.com>

next in thread | raw e-mail | index | archive | help
> > Same goes for include files and libraries (shared libraries
> > definitely have to be symlinked because they need to be registered
> > and I don't want to fiddle with /etc/rc every time I add a new
> > library).
>
> I work on too many types of systems...does FreeBSD have a way to
> compile a default library directory into a binary? (is that what
> LD_PRELOAD is? or am I confusing that with something else?) With
> SunOS 5.x (generic SysVR4?), you can pass a '-R' option (similar to
> the '-L' option) that embeds the directory name in the binary, so
> the runtime loader can locate it again in the absence of an
> appropriate library along $LD_LIBRARY_PATH at runtime. I forget what
> the exact order & precedence rules are between things, but that
> ability would get rid of that need for normal "user runs a built
> binary" types of installations.
>
> It still doesn't help for installations of programmer
> libraries/header files and so forth.

I'm not an expert on shared library registration but as far as I can
tell, each shared library directory is registered by calling ldconfig.
This is apparently done in /etc/rc, which I have to modify (once) to
accomodate my scheme.

Ern



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608282145.OAA13298>