aostruszka / nonrec-make

Non-recursive make template for GNU make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overwriting system defined compilers

Irubataru opened this issue · comments

Not sure if it is intentional or not, but maybe you shouldn't overwrite the CC and CXX variables in the "config-default.mk", so rather than

CC := gcc
CXX := g++

have

CC ?= gcc
CXX ?= g++

At least it took me some time to figure out that the compiler had been overwritten because of the pretty printing.

Thank you Jonas for pointing that out.
This is not intentional - rather just lazy(and wrong) assumption (I'm nearly always using gcc/g++) and never set CC/CXX on command line or via environment (if I cross compile then I set proper CC/CXX in relevant config-*.mk).

Please update it in your clone and I'll push this change together with larger cleanup of user makefiles. This cleanup task is way overdue but for last couple of months I constantly find myself too overloaded with my work :).

Best regards
Andrzej

I've just found out that I have not yet pushed fix for that :) - it is now in 40e0033