Skip to content

Commit e28fa26

Browse files
Joakim TjernlundgeneC
authored andcommitted
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 <gene.cumm@gmail.com>
1 parent c05fde2 commit e28fa26

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

efi/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ VPATH = $(SRC)
1414
include $(MAKEDIR)/lib.mk
1515
include $(MAKEDIR)/efi.mk
1616

17+
CC_FOR_BUILD ?= $(CC)
18+
1719
# Upstream gnu-efi has old-style function definitions.
1820
CFLAGS += -Wno-strict-prototypes
1921

utils/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
VPATH = $(SRC)
1818
include $(MAKEDIR)/syslinux.mk
1919

20+
CC_FOR_BUILD ?= $(CC)
21+
2022
CFLAGS = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC)
2123
LDFLAGS = -O2
2224

0 commit comments

Comments
 (0)