This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc-4 -static cannot find -lgcc_s
- From: Paul Bibbings <paul dot bibbings at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 27 Jun 2010 18:23:23 +0100
- Subject: Re: gcc-4 -static cannot find -lgcc_s
- References: <75302.87816.qm@web30707.mail.mud.yahoo.com>
"Uwe F. Mayer" <uwe...@yahoo.com> writes:
> It seems that gcc-4 has problems finding libgcc_s when compiling with
> -static. This works fine with gcc-3. Example:
>
> $ cat pointer.c
> #include <stdio.h>
> int main(){
> printf("%d",(int)sizeof(long));
> return(0);
> }
Confirmed for my installation. I think that the problem probably lies
with:
18:08:39 Paul Bibbings@JIJOU
/cygdrive/d/CProjs $ls -l /usr/lib/gcc/i686-pc-cygwin/4.3.4 | grep gcc
-rw-r--r-- 1 Paul Bibbings root 201150 Dec 11 2009 libgcc.a
-rw-r--r-- 1 Paul Bibbings root 131212 Dec 11 2009 libgcc_eh.a
-rwxr-xr-x 1 Paul Bibbings root 67150 Dec 11 2009 libgcc_s.dll.a
^^^^
Regards
Paul Bibbings
--
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