This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: cygwin-specific patch for collect2 and cygwin-specs
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: RFA: cygwin-specific patch for collect2 and cygwin-specs
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Thu, 18 May 2000 14:33:42 -0400
- References: <39223DE4.2B1E8AB6@ece.gatech.edu>
Any comments on this patch? Accept or reject? (I'm not familiar with the
protocol on this list or how quickly patches are handled/responded to,
so I'm unsure if the lack of response is normal, or means I did
something wrong...)
--Chuck
"Charles S. Wilson" wrote:
>
> Since ld is capable of linking directly to dll's without an importlib,
> these patches enable those features to be used by gcc more conveniently
> on the cygwin platform. Patch pasted in both plaintext and
> gzip/uuencoded format below.
>
> Aside: binutils recently accepted a patch that makes 'ld.exe -Bdynamic'
> hunt for .dll's in preference to .a's for linking (for i386pe). So, with
> this patch to gcc, on the cygwin platform, gcc will link to dll's by
> default, unless the -static option is given. This brings cygwin-gcc more
> in line with most other platforms.
>
> CHANGELOG:
>
> * gcc/config/i386/cygwin.h: change link spec to
> pass -Bstatic or -Bdynamic to ld as appropriate
> * gcc/collect2.c: add "dll" to the list of possible
> library extensions
>