I'm redirecting my question here, since it also applies to "gcc
-static" on Cygwin.

Cheers,
Janus



---------- Forwarded message ----------
From: Janus Weil <ja...@gcc.gnu.org>
Date: 2010/4/23
Subject: static linking on Cygwin
To: gfortran <fort...@gcc.gnu.org>


Hi all,

I have just tried the gfortran 4.3.4 build on Cygwin/WinXP (I'm not a
regular Windows/Cygwin user though).

One thing I noticed is that compiling with -static fails:

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld:
cannot find -lgcc_

It works, however, when adding -static-libgcc. On Linux compiling with
-static works fine, also without -static-libgcc. Can someone explain
this behaviour to me? Is this a feature or a bug?

Cheers,
Janus

Reply via email to