[syslinux:master] Use CC for CC_FOR_BUILD when unspecified.

syslinux-bot for Joakim Tjernlund joakim.tjernlund at infinera.com
Wed Feb 20 17:54:55 PST 2019


Commit-ID:  a3a10a4ed0eb088ae442779498587234c03ae288
Gitweb:     http://www.syslinux.org/commit/a3a10a4ed0eb088ae442779498587234c03ae288
Author:     Joakim Tjernlund <joakim.tjernlund at infinera.com>
AuthorDate: Thu, 9 Nov 2017 19:40:54 +0100
Committer:  Joakim Tjernlund <joakim.tjernlund at infinera.com>
CommitDate: Thu, 9 Nov 2017 19:40:54 +0100

Use CC for CC_FOR_BUILD when unspecified.


---
 efi/Makefile   | 2 ++
 utils/Makefile | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/efi/Makefile b/efi/Makefile
index 5b7abcdf..f4501e7f 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 ac91aaa9..b1031249 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -17,6 +17,8 @@
 VPATH = $(SRC)
 include $(MAKEDIR)/syslinux.mk
 
+CC_FOR_BUILD ?= $(CC)
+
 CFLAGS   = $(CFLAGS_FOR_BUILD) $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC)
 LDFLAGS  = $(LDFLAGS_FOR_BUILD) -O2
 


More information about the Syslinux-commits mailing list