I have a linker with the following definition.
<linker name="gcc" id="shared-linker">
<syslibset dir="/usr/lib64" libs="ssl,bz2"/>
<libset dir="/home/dev/test/lib" libs="tar"/>
I want to use ssl and bz2 libraries found under /usr/lib64 and want to use tar library from /home/dev/test/lib.
The bz2 library is also available under /home/dev/test/lib (which is incompatible), So at run time the gcc is using the bz2 from /home/dev/test/lib folder and fails due to incompatibility.
I am not sure why gcc is looking at /home/dev/test/lib for bz2 instead of /usr/lib64.
If I remove the bz2 from /home/dev/test/lib, the gcc is then using the bz2 available under /usr/lib64 and compiles successfully.
So my question is how do i make sure that I am only using the folder specified in dir attribute for a given library file? Is there any work around or patch/fix available for this problem.