This is the mail archive of the cygwin mailing list for the Cygwin 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]

Re: gcc-4 -static cannot find -lgcc_s


"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


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