shared libraries creating a soft link

Posted by robUK on Stack Overflow See other posts from Stack Overflow or by robUK
Published on 2010-04-08T05:25:38Z Indexed on 2010/04/08 5:33 UTC
Read the original article Hit count: 354

Filed under:

Hello,

Redhat 5.5 gcc version 4.1.2

I have a directory call lib, and in that directory I have all the shared libraries (about 30) that we get from our customer as we use their API. We link with this API.

directory structure:

/usr/CSAPI/lib

However, our customer will update their API so we get new libraries, normally about 3 or 4.

What I have been doing is when I get new libraries. Is to remove the old one and put in another directory. And replace them with the new libaries in the lib directory.

/usr/CSAPI/Old_libs

The new and old will have the same name. i.e.

libcs.so  < old
libcs.so  < new

Is there a better way to manage this? I was thinking of creating a soft line, but as the names are the same, I am not sure that this will work.

Many thanks,

© Stack Overflow or respective owner

Related posts about c