aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--efi/Makefile2
-rw-r--r--utils/Makefile2
2 files changed, 4 insertions, 0 deletions
diff --git a/efi/Makefile b/efi/Makefile
index 869edfef..c57e13f7 100644
--- a/efi/Makefile
+++ b/efi/Makefile
@@ -14,6 +14,8 @@ VPATH = $(SRC)
include $(MAKEDIR)/lib.mk
include $(MAKEDIR)/efi.mk
+CC_FOR_BUILD ?= $(CC)
+
# Upstream gnu-efi has old-style function definitions.
CFLAGS += -Wno-strict-prototypes
diff --git a/utils/Makefile b/utils/Makefile
index dfe62590..330e2026 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -17,6 +17,8 @@
VPATH = $(SRC)
include $(MAKEDIR)/syslinux.mk
+CC_FOR_BUILD ?= $(CC)
+
CFLAGS = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC)
LDFLAGS = -O2