This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: static linking on Cygwin


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

Cheers,
Janus



---------- Forwarded message ----------
From: Janus Weil <janus@gcc.gnu.org>
Date: 2010/4/23
Subject: static linking on Cygwin
To: gfortran <fortran@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]