delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/11/03/18:04:48

Date: Wed, 3 Nov 1999 09:46:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Nate Eldredge <neldredge AT hmc DOT edu>
cc: djgpp-workers AT Delorie DOT com
Subject: Re: -g vs -s
In-Reply-To: <97010109065100.00246@mercury>
Message-ID: <Pine.SUN.3.91.991103094545.29562A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019