[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/libsvn_delta/tests Makefile.am

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-09-21 20:10:05 CEST

Thanks for spotting this -- wanna patch it? :-)

(Not being facetious -- just letting you know there's no
territoriality here. If I commit something bogus, go ahead and
unbogitify it, unless you think I should do it either because I'll do
it faster, or because I made the mess and I should clean it up. :-) ).

-K

Greg Hudson <ghudson@MIT.EDU> writes:
> Karl committed:
> > -CFLAGS = -pthread
> > +CFLAGS = @CFLAGS@ -pthread
>
> This is better, but still wrong according to the gnu makefile
> standards; I've included the relevant fragment below. Similarly,
> aclocal.m4 macros are not supposed to stuff required flags into the
> CFLAGS environment variable.
>
> ---
>
> 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) $<
>
> Do include the `-g' option in `CFLAGS', because that is not
> *required* for proper compilation. You can consider it a default that
> is only recommended. If the package is set up so that it is compiled
> with GCC by default, then you might as well include `-O' in the default
> value of `CFLAGS' as well.
Received on Sat Oct 21 14:36:08 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.