This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: -static not working with gcc 4.3.4
- From: "Nellis, Kenneth" <Kenneth dot Nellis at acs-inc dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 18 Oct 2010 07:45:15 -0500
- Subject: RE: -static not working with gcc 4.3.4
- References: <20101017005857.GA28900@const.famille.thibault.fr>
> From: Samuel Thibault
>
> 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
Please, why such a large test case when the following would
have been perfectly adequate to demonstrate the problem?:
$ cat test.c
main() {}
$
--Ken Nellis