From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: linking temacs with $(CC) not ld Date: Mon, 09 Aug 2010 13:17:05 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281374236 16724 80.91.229.12 (9 Aug 2010 17:17:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 17:17:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 09 19:17:15 2010 Return-path: Envelope-to: ged-emacs-devel@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 1OiVyK-0001d6-TU for ged-emacs-devel@m.gmane.org; Mon, 09 Aug 2010 19:17:13 +0200 Original-Received: from localhost ([127.0.0.1]:35981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiVyK-0001Og-8g for ged-emacs-devel@m.gmane.org; Mon, 09 Aug 2010 13:17:12 -0400 Original-Received: from [199.232.76.173] (port=35115 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiVyF-0001Ob-6Q for emacs-devel@gnu.org; Mon, 09 Aug 2010 13:17:07 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OiVyE-0007yq-Bn for emacs-devel@gnu.org; Mon, 09 Aug 2010 13:17:07 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:36439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OiVyE-0007yl-5R for emacs-devel@gnu.org; Mon, 09 Aug 2010 13:17:06 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OiVyD-0006BS-SR for emacs-devel@gnu.org; Mon, 09 Aug 2010 13:17:05 -0400 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128497 Archived-At: Currently ld is used for linking temacs on: ## freebsd, gnu-* not on macppc|ibms390x. and when CC is not (or does not pretend to be) gcc. This is situation is very rare, probably has no users, and it's very likely to have never been tested. So we should switch to link $(CC) in that case too. This will simplify building a bit, we could use $(CFLAGS) on the linker command line. No special hacks would be needed to pass -pg when building with profiling enabled, etc.