From e28fa26e30ce42690f39cad55093ab91d6491275 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Thu, 23 Nov 2017 08:57:23 -0500 Subject: [PATCH] Use CC for CC_FOR_BUILD when unspecified. (GC): Let's put the pre-requisite first rather than making a FTBFS commit Signed-off-by: Gene Cumm --- efi/Makefile | 2 ++ utils/Makefile | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.11.4.GIT