[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: Paul Eggert
Subject: Re: CC, CFLAGS, and -m32 [was Re: Pretest compilation problem]
Date: Thu, 17 Feb 2011 09:28:14 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

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'".

reply via email to

[Prev in Thread] Current Thread [Next in Thread]