Main Page | Report this Page
Linux Forum Index  »  Linux Alpha  »  Mans got one for ya...
Page 1 of 1    

Mans got one for ya...

Author Message
DiskMan
Posted: Sun May 15, 2005 3:56 am
Guest
How in the heck do you create a *.so [shared lib file] from an *.a [archive]
using libtool/Compaq C... any tips, tricks, ideas? Will L G
 
DiskMan
Posted: Sun May 15, 2005 4:08 am
Guest
Don't worry about it, I figured it out.. a little trial and error, not to
mention I noticed a few errors I recieved in the past and new how to take
care of... Can you 'guess' what I'm doing ;-)

ccc -shared -fpic -lgcc -o
libcrypto.so.0.9.7 -Wl,-soname=libcrypto.so.0.9.7 -Wl,--whole-archive
libcrypto.a -Wl,--allow-multiple-definition -L. -lc

ccc -shared -fpic -lgcc -o
libssl.so.0.9.7 -Wl,-soname=libssl.so.0.9.7 -Wl,--whole-archive
libssl.a -Wl,--allow-multiple-definition -L. -lc


" DiskMan" <nobody@thewheel.com> wrote in message
news:91Fhe.235$S4.23@tornado.rdc-kc.rr.com...
Quote:
How in the heck do you create a *.so [shared lib file] from an *.a
[archive]
using libtool/Compaq C... any tips, tricks, ideas? Will L G

 
Måns Rullgård
Posted: Sun May 15, 2005 4:33 am
Guest
" DiskMan" <nobody@thewheel.com> writes:

Quote:
How in the heck do you create a *.so [shared lib file] from an *.a [archive]
using libtool/Compaq C... any tips, tricks, ideas? Will L G

Are you trying to convert a static library into a shared one? If you
can do it with gcc, there's no win from using ccc instead. Both use
the same linker.

A better description of what you are trying to do, and perhaps some
error messages, would make answering easier.

--
Måns Rullgård
mru@inprovide.com
 
Måns Rullgård
Posted: Sun May 15, 2005 4:52 am
Guest
" DiskMan" <nobody@thewheel.com> writes:

Quote:
Don't worry about it, I figured it out.. a little trial and error, not to
mention I noticed a few errors I recieved in the past and new how to take
care of... Can you 'guess' what I'm doing Wink

Looks like you're building openssl, and the configure script doesn't
know that ccc supports shared libraries. I hacked it to work once,
but I lost the patch somewhere.

--
Måns Rullgård
mru@inprovide.com
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu Mar 18, 2010 2:16 pm