From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 514 invoked by alias); 17 Oct 2010 07:16:48 -0000 Received: (qmail 501 invoked by uid 22791); 17 Oct 2010 07:16:46 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_LG,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from nm4.bullet.mail.ukl.yahoo.com (HELO nm4.bullet.mail.ukl.yahoo.com) (217.146.182.225) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 17 Oct 2010 07:16:43 +0000 Received: from [217.146.183.212] by nm4.bullet.mail.ukl.yahoo.com with NNFMP; 17 Oct 2010 05:33:43 -0000 Received: from [217.146.183.171] by tm5.bullet.mail.ukl.yahoo.com with NNFMP; 17 Oct 2010 05:33:43 -0000 Received: from [127.0.0.1] by omp1012.mail.ukl.yahoo.com with NNFMP; 17 Oct 2010 05:33:42 -0000 Received: (qmail 25476 invoked by uid 60001); 17 Oct 2010 05:33:42 -0000 Message-ID: <811032.23652.qm@web25502.mail.ukl.yahoo.com> Received: from [93.33.98.170] by web25502.mail.ukl.yahoo.com via HTTP; Sun, 17 Oct 2010 06:33:39 BST Date: Sun, 17 Oct 2010 08:15:00 -0000 From: Marco Atzeri Subject: R: -static not working with gcc 4.3.4 To: cygwin@cygwin.com In-Reply-To: <20101017005857.GA28900@const.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-10/txt/msg00372.txt.bz2 --- Dom 17/10/10, Samuel Thibault ha scritto: > Data: Domenica 17 ottobre 2010, 02:58 > Hello, >=20 > gcc -static doesn't seem to be working any more using gcc > 4.3.4: >=20 > $ 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 >=20 > 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.=A0 gcc-3 works fine. >=20 > Samuel $ gcc test.c -o test -static-libgcc $ cygcheck ./test.exe C:\cygwin\tmp\test.exe C:\cygwin\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\RPCRT4.dll C:\WINDOWS\system32\Secur32.dll see gcc documetation Regards -- 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