gcc-4 -static cannot find -lgcc_s
Paul Bibbings
paul.bibbings@gmail.com
Sun Jun 27 17:23:00 GMT 2010
"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
More information about the Cygwin
mailing list