My product has 2 libraries say "x & y".
x depends on y.
During the installation of my products package, user will be prompted for his own location to copy my product libraries.
Installation will copy libraries "x & y" and create my product specific ENV variable say "MYPATH" pointing to User picked install location.
Here User doesn't want to set LIBPATH nor he want to create any softlinks in "/usr/lib or /lib".
Now I should make my library "x" find its dependent "y" in the environment where there is no LIBPATH set nor softlinks created in "/usr/lib or /lib".
On other UNIX platforms, there is a concept of $ORIGIN and i am successful using this on other Unix platforms.
Since there is no concept of $ORIGIN on AIX, trying out alternatives on AIX
My Scenario:
************
My package install creates ENV variable �MYPATH� pointing to the User picked installed location.
Let say, User selected /home/lib and install will set "MYPATH=/home/lib"
Now I thought of accessing this variable in the runtime search path (Either specifying using -L or �blibpath) while building my libraries (x & y).
For a particular library, runtime search path(dump -X32 -H) should be like
INDEX PATH
0 $MYPATH
I�ve tried specifying $MYPATH in the makefile using �-L or �blibpath� but as MYPATH is not available during build time, NULL value got replaced.
INDEX PATH
0
I want $MYPATH to be considered as is so that at runtime it gets replaced with its value.
Tried Escaping $ and also used quotes but no use.
ex: $$\(MYPATH\)
Can this be possible? If possible, then how?
-Srikrishna Erra.