aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>2017-11-23 08:57:23 -0500
committerGene Cumm <gene.cumm@gmail.com>2017-11-23 08:59:04 -0500
commite28fa26e30ce42690f39cad55093ab91d6491275 (patch)
tree48da2012fae438a841acc85487230bbd8e115fbd
parentc05fde2f0f71e480fe3e5941150d9a354acabc22 (diff)
downloadsyslinux-e28fa26e30ce42690f39cad55093ab91d6491275.tar.gz
syslinux-e28fa26e30ce42690f39cad55093ab91d6491275.tar.xz
syslinux-e28fa26e30ce42690f39cad55093ab91d6491275.zip
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>
-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