From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#6715: 24.0.50; [PATCH] Cygwin build should use pre-crt0.c Date: Sat, 24 Jul 2010 08:22:40 -0400 Message-ID: <4C4ADB10.4030204@cornell.edu> References: <4C4A1B69.2050100@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020304000607050203000802" X-Trace: dough.gmane.org 1279975059 32131 80.91.229.12 (24 Jul 2010 12:37:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2010 12:37:39 +0000 (UTC) Cc: "6715@debbugs.gnu.org" <6715@debbugs.gnu.org> To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 24 14:37:37 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ocdyy-0005kO-Vh for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 14:37:37 +0200 Original-Received: from localhost ([127.0.0.1]:42851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocdyx-0000HY-Um for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 08:37:36 -0400 Original-Received: from [140.186.70.92] (port=38169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocdyr-0000HT-NK for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 08:37:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ocdyq-0002DA-BJ for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 08:37:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44347) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ocdyq-0002D5-9r for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 08:37:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ocdks-0005qq-7Y; Sat, 24 Jul 2010 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2010 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6715 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 6715-submit@debbugs.gnu.org id=B6715.127997416522482 (code B ref 6715); Sat, 24 Jul 2010 12:23:02 +0000 Original-Received: (at 6715) by debbugs.gnu.org; 24 Jul 2010 12:22:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ocdka-0005qZ-9K for submit@debbugs.gnu.org; Sat, 24 Jul 2010 08:22:44 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141] helo=authusersmtp.mail.cornell.edu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcdkX-0005qU-Hd for 6715@debbugs.gnu.org; Sat, 24 Jul 2010 08:22:42 -0400 Original-Received: from [192.168.1.5] (cpe-67-249-196-94.twcny.res.rr.com [67.249.196.94]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id o6OCMeoW013639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 Jul 2010 08:22:41 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Jul 2010 08:23:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38866 Archived-At: This is a multi-part message in MIME format. --------------020304000607050203000802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 7/24/2010 1:13 AM, Dan Nicolaescu wrote: > BTW, it would be good if you could look at configure.in and see if the > line: > > cygwin) LINKER="\$(CC)" ;; > > [Just trying to remove special cases from the build system to simplify it...] There's no need for cygwin to be a special case here. Fixing this also makes the cygwin case irrelevant in the code that sets LIB_GCC a little further down in configure.in. Please apply the attached patch. Thanks. Ken --------------020304000607050203000802 Content-Type: text/plain; name="cygwin_cleanup.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cygwin_cleanup.patch" --- configure.in.orig 2010-07-23 21:46:35.000000000 -0400 +++ configure.in 2010-07-24 07:54:29.328125000 -0400 @@ -3326,9 +3326,7 @@ ORDINARY_LINK= case "$opsys" in ## gnu: GNU needs its own crt0. - aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; - - cygwin) LINKER="\$(CC)" ;; + aix4-2|cygwin|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the ## library search parth, i.e. it won't search /usr/lib for libc and @@ -3381,8 +3379,7 @@ if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then case "$opsys" in - ## cygwin: don't link against static libgcc. - cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;; + freebsd|netbsd|openbsd) LIB_GCC= ;; gnu-*) ## armin76@gentoo.org reported that the lgcc_s flag is necessary to --------------020304000607050203000802--