public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* -static not working with gcc 4.3.4
@ 2010-10-17  7:02 Samuel Thibault
  2010-10-17  8:15 ` R: " Marco Atzeri
  2010-10-18 12:58 ` Nellis, Kenneth
  0 siblings, 2 replies; 12+ messages in thread
From: Samuel Thibault @ 2010-10-17  7:02 UTC (permalink / raw)
  To: cygwin; +Cc: Lee Maschmeyer

Hello,

gcc -static doesn't seem to be working any more using gcc 4.3.4:

$ cat test.c
int main(void) {}
$ gcc test.c -o test -static
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lgcc_s
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lgcc_s

There indeed is libgcc_s.dll.a in /usr/lib/gcc/i686-pc-cygwin/, but for
some reason gcc doesn't seem to be happy with it. This is using gcc4 and
gcc4-core 4.3.4-3.  gcc-3 works fine.

Samuel

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-02-03 22:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-17  7:02 -static not working with gcc 4.3.4 Samuel Thibault
2010-10-17  8:15 ` R: " Marco Atzeri
2010-10-17 22:46   ` Samuel Thibault
2010-10-18 12:58 ` Nellis, Kenneth
2010-10-18 13:12   ` Samuel Thibault
2010-10-18 13:53     ` Marco Atzeri
2010-10-19  7:46       ` Samuel Thibault
2011-02-03 19:34         ` gvidaver
2011-02-03 19:48           ` marco atzeri
2011-02-03 21:21             ` gvidaver
2011-02-03 22:19               ` Christopher Faylor
2011-02-03 19:50           ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).