This is the mail archive of the
cygwin-apps@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Shared vs Static [WAS: Re: [general] some ideas & request for comments (LONG)]
- To: "cygwin-apps at sourceware dot cygnus dot com" <cygwin-apps at sourceware dot cygnus dot com>
- Subject: Re: Shared vs Static [WAS: Re: [general] some ideas & request for comments (LONG)]
- From: "Michael Ring" <Michael dot Ring at t-mobil dot de>
- Date: 17 May 2000 07:54:55 +0000
- Autoforwarded: FALSE
- Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3)
- Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1)
- X400-Content-Identifier: D777ILT25A5D
- X400-Content-Type: P2-1988 (22)
- X400-MTS-Identifier: [/PRMD=DTM/ADMD=DBP/C=DE/;323F9A9611D42BD900AA12A4]
- X400-Originator: Michael.Ring@t-mobil.de
- X400-Received: by mta MB400-SMTP in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 17 May 2000 07:55:40 +0000
- X400-Received: by mta MB400-DXCW04 in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 17 May 2000 07:54:55 +0000
- X400-Recipients: cygwin-apps@sourceware.cygnus.com
On Wed, 17 May 00 03:04:38 +0100, you wrote:
>Earnie Boyd wrote:
>>
>------------
>
>NOTE: Are you suggesting, Earnie, that binutils be further hacked to
>search for the following in the '-Bdynamic' case:
>
>'libfoo.dll' 'libfoo.dll.a' (and 'foo.dll' and 'foo.dll.a' for
>consistency), and THEN as an absolutely last fallback, 'libfoo.a'
>
>In '-Bstatic', you'd only look for 'libfoo.a' of course.
>
>--Chuck
Why is the actual DLL the first thing that has to be searched?
From my understanding the first thing to use is the import-library, if it
exists.
Think about the cygwin1.dll example. If you would first try to link with the
actual dll, you would run into an 'unresolved external' problem if some kind of
name-mangling is done in the import-library.
So search order should be:
libfoo.dll.a foo.dll.a libfoo.dll foo.dll libfoo.a
Correct or wrong ????
Greetings,
Michael Ring