On Sun, 05 Apr 2009 16:12:25 -0700 (PDT)
Paul Zubarev <pavel.zubarev at gmail.com> wrote:

> Hi All,
> 
> I intend to build the IPS package with the binary file linked with the shared
> library being situated at the directory different from /usr/lib.
> 
> Please suggest me how to point the directory contains the .so file I need.
> I considered I have to use crle but I didn't understand how to append
> the post installation script to the ISP package


Why not compile the binary with your desired library's
location already "baked in" ?

LDFLAGS+="-R/path/to/library -L/path/to/library"
LDLIBS+="-Lmylibrary"


the -R arg tells the compiler to tell the linker that 
/path/to/library needs to be "baked in" to your binary.



James C. McPherson
--
Senior Kernel Software Engineer, Solaris
Sun Microsystems
http://blogs.sun.com/jmcp       http://www.jmcp.homeunix.com/blog

Reply via email to