On Thu, Dec 22, 2016 at 10:22:08PM +0000, Gianfranco Costamagna wrote: > Hello > > > > >I completely missed that part of the sentence, sorry. Any > >particular reason why you prefer it that way? (To me it seems > >logical the other way around, since the preprocessor is run > >before the compiler. But OTOH I don't really care, so had I > >not missed the sentence, I would have changed the order.) > > > not sure, I usually see > $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) foo $(LIBS)
FWIW, I've seen the reverse - CPPFLAGS before CFLAGS - in more packages, I've always done it that way, and it does seem more logical to me, too, for the same "the preprocessor is run first" reason (not to mention the cases when you want to *only* run the preprocessor, e.g. for dependency chain generation). G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@freebsd.org p...@storpool.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
Description: PGP signature