[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CC, CFLAGS, and -m32 [was Re: Pretest compilation problem]
From: |
Glenn Morris |
Subject: |
CC, CFLAGS, and -m32 [was Re: Pretest compilation problem] |
Date: |
Wed, 16 Feb 2011 22:16:16 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Andreas Schwab wrote:
> You really should put -m32 into CC, since it is a different compiler.
I've seen this advertized elsewhere, and it's off-topic for Emacs, but
can you explain this to me?
Eg `info make' says:
`CC'
Program for compiling C programs; default `cc'.
"gcc -m32" is not a program. It is a program plus some switches.
I believe you if you say that switch causes an entirely different compiler
to be invoked behind the scenes, but I don't buy that as a justification
for why -m32 should go there and not in CFLAGS.
It just seems like an excuse to get round the fact that some Makefiles
don't pass CFLAGS during the linking stage...
`info make' also says:
`CFLAGS'
Extra flags to give to the C compiler.
Not "flags passed to the compiler if it is being invoked as a compiler,
not a linker". Just "flags passed to the C compiler", full-stop.
- 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 <=
- 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, 2011/02/19
- 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