Q: AIX dynamic linked libs

I think the default extension on AIX is .a

so for dynamic lib "libabc.a", we can simply link against it by specifying "-labc"

but here I have a dylib which been built by some one else called "libxyz.so" on AIX. once I say "-lxyz" the linker is only looking for libxzy.a but not .so after that. What is the correct linker option to make it work?

simply rename libxzy.so to libxyz.a works, but I think this solution is NOT good at all.

Thanks in advance

Try using -L"path for .so file" -labc
eg:
Your libabc.so file is in /usr/lib/ folder then to link you would write
-L(/usr/lib) -labc
or put the path into a variable before using.

Regards,
Sebby

Thanks Sebby, all these libraries are located in the project source tree which means I do have -L(/project/path/lib) then -llibname.