X-Recipient: archive-cygwin AT delorie DOT com 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 Message-ID: <811032.23652.qm@web25502.mail.ukl.yahoo.com> Date: Sun, 17 Oct 2010 06:33:39 +0100 (BST) From: Marco Atzeri Subject: R: -static not working with gcc 4.3.4 To: cygwin AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --- 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