Operating System - HP-UX
1752805 Members
5482 Online
108789 Solutions
New Discussion

Re: problem of pofile based optimization

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: problem of profile based optimization

>Yes I can extract all the ".o" file from the libcrypto.a.
>how can I use all the "*.o" to create a shared libcrypto?

The obvious, create a new directory and extract all of the objects. Then link all objects in that directory:
mkdir OBJS
cd OBJS
ar -xv path-to-lib/libcrypto.a
cd -
cc -b +I -Wl,+vnocompatwarnings -Wl,+s -o libcrypto.sl.1 -Wl,+h,libcrypto.sl.1 OBJS/*.o -ldld

If you still get an error on dyn_lck.o, try linking ONLY that object. If that gets an error, perhaps that file is corrupt?

yangk
Frequent Advisor

Re: problem of pofile based optimization

Hi Dennis,

thank you for your help.
I will try your methods