X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,TW_LG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Mon, 18 Oct 2010 14:58:33 +0200 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: -static not working with gcc 4.3.4 Message-ID: <20101018125833.GB25504@const> Mail-Followup-To: cygwin AT cygwin DOT com References: <20101017005857 DOT GA28900 AT const DOT famille DOT thibault DOT fr> <2BF01EB27B56CC478AD6E5A0A28931F201762C09 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F201762C09@A1DAL1SWPES19MB.ams.acs-inc.net> User-Agent: Mutt/1.5.12-2006-07-14 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 Nellis, Kenneth, le Mon 18 Oct 2010 07:45:15 -0500, a écrit : > > From: Samuel Thibault > > $ 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. > > Please, why such a large test case when the following would > have been perfectly adequate to demonstrate the problem?: > > $ cat test.c > main() {} > $ Because providing precise information is always better when reporting a bug, whatever the circumstances. That being said, I'd still like to see this bug fixed: the -static is suppoed to be able to work alone. Samuel -- 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