From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xu Jingtao Newsgroups: gmane.emacs.bugs Subject: bug#8373: why not give user an extra variable when compile emacs under windows? Date: Tue, 29 Mar 2011 22:45:09 +0800 Message-ID: <20110329.224509.55469482.jingtaozf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301417068 28076 80.91.229.12 (29 Mar 2011 16:44:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 16:44:28 +0000 (UTC) To: 8373@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 18:44:23 2011 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 1Q4c1n-0006sT-JA for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 18:44:23 +0200 Original-Received: from localhost ([127.0.0.1]:33988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4c1m-0006nU-Vs for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 12:44:23 -0400 Original-Received: from [140.186.70.92] (port=35177 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4bv2-0002ww-VE for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 12:37:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4bv1-0000gv-5K for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 12:37:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4bv1-0000gr-2b for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 12:37:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q4bnx-00035R-04; Tue, 29 Mar 2011 12:30:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Xu Jingtao Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2011 16:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8373 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130141620011830 (code B ref -1); Tue, 29 Mar 2011 16:30:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2011 16:30:00 +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 1Q4bnq-00034l-Jp for submit@debbugs.gnu.org; Tue, 29 Mar 2011 12:29:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4aAo-0000iP-FG for submit@debbugs.gnu.org; Tue, 29 Mar 2011 10:45:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4aAi-0004U3-A0 for submit@debbugs.gnu.org; Tue, 29 Mar 2011 10:45:29 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:56369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4aAh-0004Tt-Qt for submit@debbugs.gnu.org; Tue, 29 Mar 2011 10:45:28 -0400 Original-Received: from [140.186.70.92] (port=51030 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4aAg-0003PR-7F for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 10:45:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4aAa-0004TC-Ri for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 10:45:25 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:51156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4aAa-0004Sw-P8 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 10:45:20 -0400 Original-Received: by vxk20 with SMTP id 20so253288vxk.0 for ; Tue, 29 Mar 2011 07:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:message-id:to:subject:from:x-mailer :mime-version:content-type:content-transfer-encoding; bh=xtWoAsNM8JILJzTRs/aroKAIb708dNe60oNkS8ocOW0=; b=Cp6TSoTJn3M0XxBfDjD751IDHGq4erk6CBG+aRxKYg+3SXETbm1aZu85cP6nKgwHSO CmE7fPj/hlp+T9BSYoIOHcwnu1d+4lkWwdTLmO8A4JVJJoLLPX5l4hqshoHjuctTKpcY CyUT1fZ8SG/Wi3uueMwq8V0woS2GIH3JdAuOE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:to:subject:from:x-mailer:mime-version:content-type :content-transfer-encoding; b=iQWmyxRBqQczLQeKyvXmJAWQYSHRMxgxP3eMFhNX4YBRngg+si1RB9HxWhHl/n9YNO /TqHql6c+iicdc4AVFtRzOwKM0wyLKNha3y6gu4VOb7GnlXgSLitYjEtEOEAANzxbnCW wYgpXb9BV5C4Df7IjAiM9ZPmmZ0T4DVzSEZEk= Original-Received: by 10.52.0.66 with SMTP id 2mr2020356vdc.308.1301409919677; Tue, 29 Mar 2011 07:45:19 -0700 (PDT) Original-Received: from xuleetogether ([123.120.41.101]) by mx.google.com with ESMTPS id i7sm973397vdu.21.2011.03.29.07.45.11 (version=SSLv3 cipher=OTHER); Tue, 29 Mar 2011 07:45:15 -0700 (PDT) X-Mailer: Mew version 6.3.50 on Emacs 24.0 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 29 Mar 2011 12:29:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 29 Mar 2011 12:30:05 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Tue, 29 Mar 2011 12:44:19 -0400 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:45476 Archived-At: hi emacs: When compile emacs under windows, i want to specify some gcc flags like this: ============================================================== call configure.bat --cflags -DSITELOAD_PURESIZE_EXTRA=10000 ============================================================== But under windows os,the "=" is treated as white space when passed to batch arguments. So I have to modify this gcc definition in emacs's source tree which is not my pleasure. Why not give user an extra variable when compile emacs under windows? For example, named as "LOCAL_FLAGS_WIN", so i could set this before call configure.bat like this ============================================================== set LOCAL_FLAGS_WIN=-DSITELOAD_PURESIZE_EXTRA=10000 call configure.bat ============================================================== and nt/makefile in emacs source tree is modified to support this variable. ============================================================== CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) $(LOCAL_FLAGS_WIN) ============================================================== best regards. jingtao