I have a set of .a libraries which I want to link into my .so library.
I want to do this because the user of my dynamic library shouldnt have to link to the .a libraries in his code. Instead he should link to my library and get all the libs.
When I linked the .a directly into the .so, the lib built fine, but any executables that I built using this .so still needed to link to the .a to build
One way I did it is by extracting all the .o files from the .a and linking them into my .so. It worked fine, but it couples my .so too tightly with the .a's and it is difficult to maintain if the .a changes regularly.
Is it possible to do this in an elegant way?
Specs of the build machine -
uname -a : Linux matrix 2.4.20-28.9.XFS1.3.1smp #1 SMP Mon Jan 5 13:20:15 CST 2004 i686 i686 i386 GNU/Linux
gcc --version : gcc (GCC) 3.3.2 20040119 (Red Hat Linux 3.3.2-8)
Thanks in advance for any help