[Buildroot] [git commit branch/2024.02.x] package/zic: fix host compile (needs CC/HOST_CONFIGURE_OPTS set)

Peter Korsgaard peter at korsgaard.com
Sun Apr 28 14:17:49 UTC 2024


commit: https://git.buildroot.net/buildroot/commit/?id=b300a1ed8548c96fd1448d1a9c819f443d15e341
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.02.x

zic needs CC defined since version bump to 2024a, and upstream commit
c3ebd8e98846 (make Makefile more compatible with POSIX).

Use HOST_CONFIGURE_OPTS which contains the appropriate host CC setting,
as well as our host CFLAGS and LDFLAGS.

Fixes:

  c99 -O1   -c -o zic.o zic.c
  make[2]: c99: No such file or directory

Signed-off-by: Peter Seiderer <ps.report at gmx.net>
[yann.morin.1998 at free.fr: reword commit log, refer to upstream commit]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 9139159d3917d8d5f1db0c7e84562c0ba4922048)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/zic/zic.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/zic/zic.mk b/package/zic/zic.mk
index 95fa1eaa96..8abcec9360 100644
--- a/package/zic/zic.mk
+++ b/package/zic/zic.mk
@@ -12,7 +12,7 @@ ZIC_LICENSE = Public domain
 ZIC_LICENSE_FILES = LICENSE
 
 define HOST_ZIC_BUILD_CMDS
-	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) zic
+	$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) zic
 endef
 
 define HOST_ZIC_INSTALL_CMDS



More information about the buildroot mailing list