• Michael Shigorin's avatar
    lib/functions.mk: tiny but important note · c293dd14
    Michael Shigorin authored
    There's a particular problem with lazy evaluation
    in case of BOOT_LANG: mkimage uses internal variable,
    BOOT_LANG = $(GLOBAL_BOOT_LANG) (note the lack of
    immediate assignment there), and if we set up
    
      export GLOBAL_BOOT_LANG = $(BOOT_LANG)
    
    in the same namespace we end up with recursively
    defined pair of variables; a ":=" in either place
    would save the day _but_ it's not there in m-p due to
    accumulator variables, e.g. USERS, which are defined
    and exported by a corresponding feature and then get
    populated *after* having been declared for export,
    _and_ it's not in mkimage as of 0.2.16 for some reason
    that might even be good (I don't know yet).
    c293dd14
functions.mk 2.03 KB