From xemacs-m  Wed Jul  2 23:35:19 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id XAA13658
	for <xemacs-beta@xemacs.org>; Wed, 2 Jul 1997 23:35:18 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id VAA25266 for <xemacs-beta@xemacs.org>; Wed, 2 Jul 1997 21:59:56 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id VAA27692; Wed, 2 Jul 1997 21:34:45 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id VAA23192; Wed, 2 Jul 1997 21:34:43 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA01827; Wed, 2 Jul 1997 20:40:48 -0700
Date: Wed, 2 Jul 1997 20:40:48 -0700
Message-Id: <199707030340.UAA01827@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Hrvoje Niksic <hniksic@srce.hr>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Configure shortcomings
In-Reply-To: <kigu3ifx64p.fsf@jagor.srce.hr>
References: <kigu3ifx64p.fsf@jagor.srce.hr>
X-Mailer: VM 6.32 under 20.3 "Sofia" XEmacs  Lucid (beta9)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Hrv" == Hrvoje Niksic <hniksic@srce.hr> writes:

Hrv> It seems to me that one of the recent configure additions got wrong
Hrv> the semantics of `CC' and `CFLAGS' makefile variables.

Hrv> First, when I used `--compiler=cc' to compile with SunPro CC[1], it
Hrv> used `-xO4' by default.  I don't want that.  So I typed:

Hrv> make CFLAGS=-g

Hrv> ...and got:  "cc -v -xO4 -g ..." (or something like that).  Unpleasant.

I can't reproduce this.  Is it dependent on whether gnu make or Sun
make is used?  Please try again in b11, with various different makes.

Martin

Hrv> Then, I used

Hrv> make CC=cc CFLAGS=-g

Hrv> ...but then puresize squeaked, and there it is, compiling alloc.c with 
Hrv> -xO4.  Aaaaaaaaaaaargh!

Hrv> So, pretty pretty please, could we really have that CC means the
Hrv> compiler used, CFLAGS debugging/optimization flags, CPPFLAGS
Hrv> preprocessor flags, etc.?


Hrv> [1]
Hrv> Have I ever told you that I cannot build XEmacs with union types with
Hrv> gcc on Solaris.  Well, now you know it. :-)

See other message...

Martin

