We are using icpc to dynamically link to an oracle library as follows:
icpc -shared -m64 -static-intel -Wl,--version-script .... (object list) ... -L/home/oracle/app/oracle/product/12.1.0/dbhome_1/lib -lclntsh
In the directory /home/oracle/app/oracle/product/12.1.0/dbhome_1/lib, we have the symbolic link:
lrwxrwxrwx 1 oracle oinstall 69 May 8 2017 libclntsh.so -> /home/oracle/app/oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1
We assume that this link will produce a library which will dependant on libclntsh.so . But the resulted library is dependent on libclntsh.so.12.1, which is the symolic linked library. This causes our library not to be version in dependent.
Please advise.
Thanks in advanced