Subject: Re: /emul/xxx for all/other /sys/compat/xxx?
To: None <>
From: Paul Kranenburg <>
List: tech-kern
Date: 03/06/1995 22:43:33
> the problem is that you've only got 8 characters to work with:
> changing `/usr/lib' to `/emul/sunos' would extend the string 3
> characters and break the program.  though this is a good idea,
> i'm not entirely sure how to do it properly.

The native NetBSD can be built to load SunOS dynamic programs as well.
When put it in /usr/lib (/emul/sunos/usr/lib), SunOS binaries will use it,
giving ample opportunity to search for shared libraries in an entirely
separate set of directories (namely, those mounted/copied from a SunOS system
near you). This can be done relatively easily by the existing LD_LIBRARY_PATH
mechanism by having, say, a LD_LIBRARY_PATH_SUNOS pointing at those directories.

One of the less elegant sides is that such an must (at the moment) be
linked against SunOS's libc_pic.a library (because it must run in `emul' mode).