All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] package/zic: fix host compile (needs CC/HOST_CONFIGURE_OPTS set)
@ 2024-04-01 11:24 Peter Seiderer via buildroot
  2024-04-01 12:11 ` Yann E. MORIN
  2024-04-28 14:18 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Seiderer via buildroot @ 2024-04-01 11:24 UTC (permalink / raw)
  To: buildroot; +Cc: Kadambini Nema, Martin Bark

Host compile of zic needs CC defined since version bump to 2024a (given by
HOST_CONFIGURE_OPTS).

	$ diff -ru build/host-zic-2023c/Makefile build/host-zic-2024a/Makefile
  --- build/host-zic-2023c/Makefile	2024-04-01 12:44:14.515490354 +0200
  +++ build/host-zic-2024a/Makefile	2024-04-01 13:10:50.138333771 +0200
  [...]
  +# To affect how this Makefile works, you can run a shell script like this:
  +#
  +#	#!/bin/sh
  +#	make CC='gcc -std=gnu11' "$@"
  +#
  +# This example script is appropriate for a pre-2017 GNU/Linux system
  +# where a non-default setting is needed to support this package's use of C99.
  +#
  +# Alternatively, you can simply edit this Makefile to tailor the following
  +# macro definitions.
  +
  +###############################################################################
  +# Start of macros that one plausibly might want to tailor.
  [...]
  -cc=		cc
  -CC=		$(cc) -DTZDIR='"$(TZDIR)"'
  [...]

Fixes:

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

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 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
-- 
2.44.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-28 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 11:24 [Buildroot] [PATCH v1] package/zic: fix host compile (needs CC/HOST_CONFIGURE_OPTS set) Peter Seiderer via buildroot
2024-04-01 12:11 ` Yann E. MORIN
2024-04-28 14:18 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.