2017-10-08 15:59 GMT+05:00 Vincent Bernat <[email protected]>:
> ❦ 8 octobre 2017 15:46 +0500, Илья Шипицин <[email protected]> :
>
> >> > while some Makefiles allow to use CC, other just stick to gcc.
> >> > I think we should change to
> >> >
> >> > CC ?= gcc
> >>
> >> This doesn't change much. You can already override gcc with "make
> >> TARGET=... CC=clang". The only thing "?=" is that you can do "env
> >> CC=clang make TARGET=...".
> >>
> >> Doesn't this work for you?
> >>
> >
> > any particular reason for mixing "CC=gcc" with "CC?=gcc" ?
>
> I don't see any use of ?=, except for stuff that are expected to be in
> environment variables (like HOME, DISPLAY, LANG, PATH).
>
# find . -name Makefile -exec grep -E '^CC' {} ';' -print
CC = gcc
./Makefile
CC = gcc
./contrib/debug/Makefile
CC = gcc
./contrib/halog/Makefile
CC = gcc
./contrib/ip6range/Makefile
CC = gcc
./contrib/iprange/Makefile
CC ?= gcc
./contrib/mod_defender/Makefile
CC ?= gcc
./contrib/modsecurity/Makefile
CC = gcc
./contrib/spoa_example/Makefile
CC = gcc
./contrib/tcploop/Makefile
> --
> Consider well the proportions of things. It is better to be a young
> June-bug
> than an old bird of paradise.
> -- Mark Twain, "Pudd'nhead Wilson's Calendar"
>