Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix regression supporting HOST, NATIVE vars set from config.mak
the logic for processing the NATIVE var (shortcut for HOST=$(TARGET)) and HOST var took place before inclusion of config.mak, causing NATIVE not to be honored and wrong BUILD_DIR and OUTPUT defaults to be used if either was set from config.mak rather than on the make command line. the current preferred interface is the command line, but the regression was unintentional. to fix it, replace the conditional blocks of the makefile with conditional functions in recursively-expanded variables HOST, BUILD_DIR, and OUTPUT. this way, assignments to NATIVE or HOST that take place later in config.mak will affect the resulting values, as intended.
- Loading branch information