Takao Fujiwara - Tokyo S/W Center wrote:
>          def _findLib_ldconfig(name):
> +            if not os.path.exists('/sbin/ldconfig'):
> +                return None
> +

The Solaris equivalent to print the system default library
path is /usr/bin/crle - default output covers 32-bit apps,
add -64 flag to get 64-bit library paths.

> @@ -171,8 +174,24 @@
>                      return None
>              return res.group(0)
> 
> +        def _findLib_env(name):
> +            paths = os.environ.get('LD_LIBRARY_PATH')

LD_LIBRARY_PATH_32 & LD_LIBRARY_PATH_64 take precedence over
LD_LIBRARY_PATH if they're set, since they're more specific
(32-bit only & 64-bit only).

> +            if paths:
> +                paths += ':/usr/lib'
> +            else:
> +                paths = '/usr/lib'

Shouldn't /lib be in the default too?   (Though crle will
provide that for you.)

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to