This is the mail archive of the
mailing list for the Cygwin project.
Re: idea for mixed import/static libraries and linking with DLLs
- From: Jerry Heyman <jerry at dev dot tivoli dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 18 Mar 2003 17:02:39 -0500 (EST)
- Subject: Re: idea for mixed import/static libraries and linking with DLLs
- Reply-to: <jheyman at us dot ibm dot com>
On Tue, 18 Mar 2003 11:17:49 -0500, Joe Buehler <jbuehler at hekimian dot com>
> Christoper Faylor wrote:
> > Apologies if this approach has already been mentioned. I thought
> > it was kinda neat.
> AIX has something interesting. All libraries are ar libs. You can
> have shared objects in them or plain .o files, or a mixture of both.
> The same librry can be used for dynamic or static builds.
I've always found the fact that a .a was both shared and static a problem.
You loose any knowledge knowing what libraries HAVE to be installed on the
machine in order to make the application execute :-(
> Further, since all code is position-independent, you can easily
> make a shared library from any .o file.
True. but its not that simple. You have to create an exports file that
lists all the symbols in the shared portion of the library, and combine
all the .o files you want to be shared into a single shr.o file.
Granted there are advantages to treating all libraries the same, but there
are inherent limitations and added complexities here also.
Jerry Heyman 919.224.1442 | IBM SWG/Tivoli Software |"Software is the
Build Infrastructure Architect| 3901 S Miami Blvd | difference between
jheyman at dev dot tivoli dot com | RTP, NC 27709 | hardware and reality"
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html