All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/frotz: fix build with gcc 14
@ 2024-05-16 16:32 Fabrice Fontaine
  2024-05-16 19:25 ` Thomas Huth
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2024-05-16 16:32 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Huth, Fabrice Fontaine

Drop -std=c99 from CFLAGS to avoid the following build failure with gcc
14:

fastmem.c: In function 'z_restore':
fastmem.c:842:36: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
  842 |                 f_setup.aux_name = strdup(default_name);
      |                                    ^~~~~~
      |                                    strcmp

Fixes:
 - http://autobuild.buildroot.org/results/df3b3b98265ec3a75578614746b2d1426c90e125

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/frotz/frotz.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/frotz/frotz.mk b/package/frotz/frotz.mk
index 5af235137c..807c800be9 100644
--- a/package/frotz/frotz.mk
+++ b/package/frotz/frotz.mk
@@ -20,8 +20,7 @@ endif
 
 define FROTZ_BUILD_CMDS
 	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr CONFIG_DIR=/etc \
-		SOUND_TYPE=none CURSES="$(FROTZ_CURSES)" USE_UTF8=$(FROTZ_UTF8) \
-		CFLAGS="$(TARGET_CFLAGS) -std=c99"
+		SOUND_TYPE=none CURSES="$(FROTZ_CURSES)" USE_UTF8=$(FROTZ_UTF8)
 endef
 
 define FROTZ_INSTALL_TARGET_CMDS
-- 
2.43.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-05-16 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16 16:32 [Buildroot] [PATCH 1/1] package/frotz: fix build with gcc 14 Fabrice Fontaine
2024-05-16 19:25 ` Thomas Huth
2024-05-16 20:38   ` Fabrice Fontaine

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.