Mail Archives: djgpp-workers/1999/11/03/18:04:48
On Wed, 1 Jan 1997, Nate Eldredge wrote:
> > Most Makefile's I saw put -g into CFLAGS, so linking is done with -g as
> > well.
>
> Except that in my experience, Makefiles don't use CFLAGS when
> linking, they use LDFLAGS instead.
Examples, please.
Most GNU packages (at least their latest releases) use CFLAGS in
linking. Automake generates these Makefiles automatically, so any
package that uses Automake will have that. Including Cdecl, for
example ;-).
I understand that one reason for this is that people are used to say
"make CFLAGS=-pg" and expect it to DTRT.
- Raw text -