Subject: Re: libexec
To: Madhvesh R S <madhvesh.s@ap.sony.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 03/09/2004 22:29:19
On Mon, Mar 08, 2004 at 10:50:25AM +0530, Madhvesh R S wrote:
> On Saturday, March 06, 2004 8:43 PM, Manuel Bouyer wrote
> >cd /usr/src/libexec/ld.elf_so && make USETOOLS=never
> Thanks
> 
> >I don't think statically linked programs can use dlopen().
> >This is why -current has switched to a fully dynamic userland.
> I donot agree for this. Even statically linked programs should be 
> able to open a shared object. But in this case, the symbols of
> main program cannot be linked for the shared object since main
> program is built statically.

In this case the module has to be completely standalone. It can't make
calls to libc either.

> Any old versions of NetBSD support 
> dlopen for statically built programs? 

No.

> 
> >I don't think you can easily, you'll probably have to install is in
> >place of /usr/libexec/ld.elf_so
> How do i install in different folder? any option as part of 
> "make install" or "make" ?

Look at "DESTDIR"

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--