Operating System - HP-UX
1748008 Members
4535 Online
108757 Solutions
New Discussion

how to convert shared lib to archive lib

 
Kevin Bingham
Regular Advisor

how to convert shared lib to archive lib

Hi

I have to try and create an archive library out of a supplied shared library to satisfy site restrictions about the use of shared libraries. Any idea as to how I should go about this. I know the reverse is easily possible.

Thanks in advance.
Kevin
1 REPLY 1
steve flynn_1
New Member

Re: how to convert shared lib to archive lib

Hi Kevin,

I'm not sure that what you are trying to do is possible without the source code as this must be compiled as position-independent code using the '+z' or '+Z' option on the 'cc' command line. You can find all the symbols reference by using the 'nm' command and from this list possibly find the source. If you find out different please let me know.

Steve