[CRIU] [PATCH] tools.mk: Define CC if not set to 'default'

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Apr 11 12:54:43 MSK 2019


On 11/04/2019 10:28, Cyrill Gorcunov wrote:
> On Thu, Apr 11, 2019 at 10:21:37AM +0100, Radostin Stoyanov wrote:
>> 	FOO ?= bar
>>
>> is equivalent to
>>
>> 	ifeq ($(origin FOO), undefined)
>> 	FOO = bar
>> 	endif
>>
>> However, when CC is not set its value is 'default' rather than
>> 'undefined'.
>>
> Who set this value to "default"? This patch looks pretty wrong.
'undefined'

    if variable was never defined.

'default'

    if variable has a default definition, as is usual with CC and so on.
See Variables Used by Implicit Rules. Note that if you have redefined a
default variable, the origin function will return the origin of the
later definition.


https://www.gnu.org/software/make/manual/make.html


More information about the CRIU mailing list