Re: about CFLAGS
Santiago Vila Doncel wrote:
> Francesco Tapparo wrote:
> > Santiago Vila Doncel wrote:
> > > Did you try CFLAGS="-O2 -g -Wall" ./configure ?
> > Yes, so the pakage compile perfectly: thanks. Now I think that this is the
> > right method of set the variables.
> However, I fail to see why make CFLAGS="-O2 -g -Wall" could not work,
> if Makefile is generated by a configure script.
Hmm... I think I ran into this too. In package cgoban, the Makefile.in
contains the following line:
CFLAGS = @CFLAGS@ $(INCS)
The result is that if I override CFLAGS when I invoke make, I lose
$(INCS), which is a series of -I flags. I got around the problem
by replacing that line with the following two lines:
CDEBUGOPTS = @CFLAGS@
CFLAGS = $(CDEBUGOPTS) $(INCS)
Then I invoke make with CDEBUGOPTS="-O2 -g".
It is possible that the Makefile.in in your package already contains a
variable that performs a role similar to the CDEBUGOPTS I added to
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .