[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem]
From: |
Chong Yidong |
Subject: |
Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem] |
Date: |
Sat, 19 Feb 2011 12:39:00 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> On 02/16/2011 07:16 PM, Glenn Morris wrote:
>> I've seen this advertized elsewhere, and it's off-topic for Emacs, but
>> can you explain this to me?
>
> It's to cater to a common usage, where one does
> "configure CC='cc -m32'; [edit]; make CFLAGS=-g".
>
> "configure" may decide to use "-g -O2", but you may find it easier
> to compile with plain -g than with -g -O2, because it's easier to debug
> code that isn't optimized.
>
> If instead you use "configure CC=cc CFLAGS=-m32", it's more of
> a pain: "configure" won't set all the CFLAGS for you, and when
> you run "make" yourself you need to say "make CFLAGS='-m32 -g'".
Nonetheless, there should be no downside for us to add CFLAGS to this
Makefile rule, correct? If you know of any risk, let me know.
- Pretest compilation problem, Chong Yidong, 2011/02/16
- Re: Pretest compilation problem, Andreas Schwab, 2011/02/16
- CC, CFLAGS, and -m32 [was Re: Pretest compilation problem], Glenn Morris, 2011/02/16
- Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem], Paul Eggert, 2011/02/17
- Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem],
Chong Yidong <=
- Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem], Paul Eggert, 2011/02/19
- Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem], Miles Bader, 2011/02/17
Re: Pretest compilation problem, Glenn Morris, 2011/02/16