Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
Notice: | Welcome to the Digital UNIX Conference |
Moderator: | SMURF::DENHAM |
Created: | Thu Mar 16 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 10068 |
Total number of notes: | 35879 |
Does anyone have a script or tool which will convert an archive to a shared object? Something that would extract all the .o files from a .a file and then link them into a .so with a single easy command. Pat
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
9163.1 | VAXCPU::michaud | Jeff Michaud - ObjectBroker | Thu Mar 13 1997 10:56 | 6 | |
There is no need to unpack a .a (ala static library) in order to create a shared object (.so). Simply specify the name of the .a file right where you should have specified the list of .o's that make up the .a on the ld command line. See the ld(1) man page for how to link a shared object .... | |||||
9163.2 | see ld(1) for details on what the flags mean | VAXCPU::michaud | Jeff Michaud - ObjectBroker | Thu Mar 13 1997 14:33 | 3 |
And FWIW, here's an example: ld -shared -o foo.so -all /usr/lib/libdnet.a -none -lc |