haroon wrote:

>  Command line:
>  crle -c fn.conf -o /apps002/fnsw/lib/shobj/fixed-libs -I
>  ./libfn_test_shlib.so

This incantation, using the "-I" option, has created an alternative
object (it's been relocated to a fixed location).  You probably
don't want to do this.

If you want the configuration file to direct your application to
search for dependencies in an alternative location, then you want
to set LD_LIBRARY_PATH within the configuration file (use -e/E).
For example:

   % crle -c fn.conf -e /apps002/fnsw/lib/shobj/fixed-libs

Now, when an application reads this configuration file, it will
pick up the LD_LIBRARY_PATH definition.

But note also, an application will only read this configuration
file if told to do so, ie:

   % LD_CONFIG=./fn.conf <app>

Once you've experimented this way, the configuration file can
be moved to the default location so that *all* apps on the system
read its information (the default 32-bit location is /var/ld/ld.config).

But, do you really want *every* application on the system to be
told to look in /apps002/fnsw/lib/shobj/fixed-libs?

Have they looked at the $ORIGIN runpath token as an alternative
to having to use LD_LIBRARY_PATH?

Are they using OpenSolaris?  they might be able to use elfedit(1)
to alter their hard coded runpaths too.

-- 
Rod

Reply via email to