commit fa17e40f3662b219eed94f29eb4b1c36e31bf493
parent a83473384064ef893eb720c97f3c1cce53d17729
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 21 Sep 2023 09:15:42 +0200
build: Add HOSTCC variable
This variable holds the name of a compiler that can be used to
compile programs ready to be run in the host system instead of
the cross compile system.
Diffstat:
4 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/scripts/build/host/bsd.mk b/scripts/build/host/bsd.mk
@@ -1,3 +1,4 @@
DRIVER = posix
HOST_CPPFLAGS = -D_ISOC99_SOURCE -D_ANSI_SOURCE
+HOSTCC = c99
diff --git a/scripts/build/host/linux.mk b/scripts/build/host/linux.mk
@@ -1 +1,3 @@
DRIVER = posix
+
+HOSTCC = c99
diff --git a/scripts/build/host/plan9.mk b/scripts/build/host/plan9.mk
@@ -1,3 +1,4 @@
DRIVER = posix
HOST_CFLAGS = -D_SUSV2_SOURCE
+HOSTCC = c99
diff --git a/scripts/build/host/posix.mk b/scripts/build/host/posix.mk
@@ -1,3 +1,4 @@
DRIVER = posix
HOST_CPPFLAGS = -D_POSIX_C_SOURCE=1
+HOSTCC = c99