[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: addition to debian standards



Then that code is plain wrong.  Let me quote from the GNU coding standards.

	   If there are C compiler options that *must* be used for
	proper compilation of certain files, do not include them in
	`CFLAGS'.  Users expect to be able to specify `CFLAGS' freely
	themselves.  Instead, arrange to pass the necessary options to
	the C compiler independently of `CFLAGS', by writing them
	explicitly in the compilation commands or by defining an
	implicit rule, like this:

	     CFLAGS = -g
	     ALL_CFLAGS = -I. $(CFLAGS)
	     .c.o:
             $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<


Tyson Dowd <trd@cs.mu.OZ.AU> writes:

> 
> Not if CFLAGS is defined as
> 
> # Note must compile with these options or horrible things happen
> # after running for 3 days with lots of important data.
> CFLAGS = -fPIC -fno-builtin -g -Wall
> 
> make CFLAGS=favorite flags 
> and you will kill this definition!
> 


--
Kevin Dalley
kevind@rahul.net


Reply to: