diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2025-07-12 12:45:58 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-07-18 12:22:24 -0600 |
commit | bd0ade7d090a334b3986936d63a34001d99722ad (patch) | |
tree | c9df3e1b40bad6a00e670ebd0f402596e8c90064 | |
parent | 15d99b3bf5ec76e12b5a5ccdb9b923ba87fe6dab (diff) | |
download | u-boot-master.zip u-boot-master.tar.gz u-boot-master.tar.bz2 |
Systems that use clang may not have gcc installed. Set
HOSTCC to cc and HOSTCXX to c++ like we did before to make those
systems work again.
Fixes: 5f520875bdf0 ("kbuild: Bump the build system to 5.1")
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -416,8 +416,8 @@ HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null) HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null) HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null) -HOSTCC = gcc -HOSTCXX = g++ +HOSTCC = cc +HOSTCXX = c++ KBUILD_HOSTCFLAGS := -Wall -Wstrict-prototypes -O2 \ -fomit-frame-pointer -std=gnu11 $(HOST_LFS_CFLAGS) \ $(HOSTCFLAGS) #-Wmissing-prototypes Enable it and fix warnings |