[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

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

9163.0. "script to unpack archive and convert to .so?" by PEACHS::LAMPERT (Pat Lampert, UNIX Applications Support, 343-1050) Thu Mar 13 1997 10:17

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.RTitleUserPersonal
Name
DateLines
9163.1VAXCPU::michaudJeff Michaud - ObjectBrokerThu Mar 13 1997 10:566
	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.2see ld(1) for details on what the flags meanVAXCPU::michaudJeff Michaud - ObjectBrokerThu Mar 13 1997 14:333
	And FWIW, here's an example:

ld -shared -o foo.so -all /usr/lib/libdnet.a -none -lc