Subject: Re: namei() for binary emulations
To: None <tech-kern@netbsd.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-kern
Date: 07/06/2005 17:59:28
--2oox5VnwalALFvA7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 06, 2005 at 09:45:30AM +0200, Quentin Garnier wrote:
  | On Wed, Jul 06, 2005 at 09:11:39AM +1000, Luke Mewburn wrote:
  | > On Wed, Jul 06, 2005 at 05:41:31AM +1000, matthew green wrote:
  | >   | i wish that the normal links were relative.  this also affects
  | >   | trying to use a netbsd /usr/lib for cross compiling.  i have to
  | >   | specify both $path/lib and $path/usr/lib.
  | >=20
  | > The symlinks from /usr/lib/libfoo -> /lib/libfoo for libraries that t=
he
  | > linker uses (libfoo.so) have been relative instead of absolute in
  | > NetBSD-current since 2005/05/10.  (See bsd.lib.mk rev 1.260)
  |=20
  | /usr/libexec/ld.so_elf is the one that matters first.

For emulations, yes.
For cross-building, no.
IIRC, matt & Jason were talking about the latter.

Regarding installing ld.elf_so as a relative symlink
instead of absolute symlink:

    *	It looks like we'll need to enhance the SYMLINKS stuff
	in <bsd.links.mk> to allow use of relative symlinks
	on a case-by-case basis or even make relative symlinks
	the default for SYMLINKS.

    *	Alternatively we add a special manual target for ld.elf_so
	to install it as a relative symlink.

Thoughts?

Thanks,
Luke.

--2oox5VnwalALFvA7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFCy49gpBhtmn8zJHIRAmwxAJoCgQv8B5d5nD442sJrFWqSjeffNgCfQuA1
FZ+L1OWrIEO+6wD3wKaqJUA=
=JibP
-----END PGP SIGNATURE-----

--2oox5VnwalALFvA7--