I guess that this question is a borderline between ServerFault and StackOverflow and this site. But I think that U&L is most relevant.
I have some
C++ code that depends on a library in version
X and system provides version
Y (X>Y). I have compiled this library and placed resulting files into
Y is installed in
/usr/lib64. I want to link against
Now I'd like to create some script that somehow enables version
X, so any code I build with
gcc is compiled against version
X without any changes in the makefiles.
For now I set
LIBRARY_NAME_DIR variable and in the makefile i just append
-L $LIBRARY_NAME_DIR, which works but requires me to change makefiles.
Is there any way to do to do this sort of things without having root access to the computer.
Note: while I believe that answer to this question does not depend on the specific libary or the code, all details for my particular problem are here: https://stackoverflow.com/q/24189130/7918.
What I have tried:
- I have set: