Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm list-help: list-post: Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-apps AT sourceware DOT cygnus DOT com Date: 17 May 2000 07:54:55 +0000 Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3) From: "Michael Ring" To: "cygwin-apps AT sourceware DOT cygnus DOT com" Subject: Re: Shared vs Static [WAS: Re: [general] some ideas & request for comments (LONG)] Importance: normal Autoforwarded: FALSE Message-Id: Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1) 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