Subject: Re: obscure ld switches
To: Chris Jones <>
From: Todd Vierling <tv@NetBSD.ORG>
List: current-users
Date: 04/23/1998 16:13:19
On Thu, 23 Apr 1998, Chris Jones wrote:

: package needs to be "linked with a flag to ld indicating that the dynamic
: linker can use symbols in the executable to resolve unresolved symbols in
: dynamically linked code.  The name of this flag varies between systems.
: On GNU/Linux, it is -rdynamic."

On NetBSD, shared objects have access by default to the executable's
symbols.  No option is required or should be added. 

Of course, you have to compile the shared object code with -fpic (or -fPIC
if the code is big) to make the shared object libraries in the first place.

-- Todd Vierling (Personal; Bus.