Commit efc71c9
build: Avoid passing *FLAGS to sub-make
By default, make won't export CFLAGS defined in the top-level makefile to
the gnu-efi submake. However, if the caller has CFLAGS set in the
environment, it will export the CFLAGS defined in the top-level makefile
to the gnu-efi submake (which it uses due to use of "CFLAGS += ...").
The result is that these two commands both compile but give different
checksums on the final binary:
$ make
$ CFLAGS=not-used make
Avoid this inconsistency by explicitly unexporting the various *FLAGS
from the top-level makefile.
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>1 parent 77a2922 commit efc71c9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
0 commit comments