Is there a way to maintain shared libraries (e.g. adding or deleting
objects) without relinking the entire set of objects in the library?
I guess what I am looking for is something that performs the same
functions on shared libraries as 'ar -r' and 'ar -d' do on archives.
right now, to build 'libfoo' I do:
gcc -fPIC -shared -o libfoo.so foo_1.o foo_2.o foo_3.o ...
This works, but to add another object, I have to relink the whole
thing, which means that I have to store large amounts of object code,
or recompile each time I want to change the library :(
I am using Solaris 2.4, GCC 2.6.3, and SUN's ld.
Thanks,
Paul