Delay-Load equivalent in unix based systems
Posted
by saran
on Stack Overflow
See other posts from Stack Overflow
or by saran
Published on 2010-06-02T11:40:12Z
Indexed on
2010/06/02
11:43 UTC
Read the original article
Hit count: 189
What is the delay load equivalent in unix based system.
I have a code foo.cpp, While compiling with gcc I link it to shared objects(totally three .so files are there.).Each of the .so file for different option.
./foo -v needs libversion.so ./foo -update needs libupdate.so
I need the symbol for those libraries should be resolved only at the run time.
./foo -v should not break even if libupdate.so library is not there.
It is working in windows using the delay load option(in properties of dll). What is its equivalent in unix systems.
Will '-lazy' option does the same in UNIX?. If so,Where to include this option? (in makefile or with linker ld).
I am not good in unix. Please help me.. Thanks in advance.
© Stack Overflow or respective owner