Query regarding resolving inter-library dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a executible. myexec.exe

I am writing a library mylib.so which depends on libperl.so. [libperl.so
inturn depends on several libraries IO.so, Fcntl.so, Socket.so etc etc]

myexec.exe will dynamically load the mylib.so.
But when running it fails asking for the libraries on which libperl.so was
dependent.

If i include the libperl.so in the link path of myexec.exe things go fine.
But i dont want to alter the link path.

I tried compiling mylib.so using :
libtool --mode=link --tag=CC g++-3.4 -rdynamic -shared -o mylib.so
PageValidator.o -L/lib -lperl

if i go on adding the dependent libraries to the libtool command then the
executable runs successfully.

Am i missing any options to recursively search and load the interdependent
libraries ?
Please clarify.
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux