From b57123a0900e3aa2682e58c582387ed9d09958cf Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 15 Mar 2025 14:33:47 -0700 Subject: [PATCH] ckermit: Fix build with GCC-15 Also fix native pieces to build with gcc-14 while here Signed-off-by: Khem Raj (cherry picked from commit f8ece969ea279f37938a54e6d8c01e9937753f03) Signed-off-by: Anuj Mittal --- meta-oe/recipes-support/ckermit/ckermit_302.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-support/ckermit/ckermit_302.bb b/meta-oe/recipes-support/ckermit/ckermit_302.bb index 1ee776cefe..e9c3a53e38 100644 --- a/meta-oe/recipes-support/ckermit/ckermit_302.bb +++ b/meta-oe/recipes-support/ckermit/ckermit_302.bb @@ -28,7 +28,7 @@ do_compile () { # The original makefile doesn't differentiate between CC and CC_FOR_BUILD, # so we build wart manually. Note that you need a ckwart.o with the proper # timestamp to make this hack work: - ${BUILD_CC} -c ckwart.c + ${BUILD_CC} -DMAINTYPE=int -c -o ckwart.o ckwart.c ${BUILD_CC} -o wart ckwart.o ./wart ckcpro.w ckcpro.c @@ -45,7 +45,8 @@ do_compile () { -DNORESEND -DNOAUTODL -DNOSTREAMING -DNOHINTS -DNOCKXYZ -DNOLEARN \ -DNOMKDIR -DNOPERMS -DNOCKTIMERS -DNOCKREGEX -DNOREALPATH \ -DCK_SMALL -DNOLOGDIAL -DNORENAME -DNOWHATAMI \ - -DNOARROWKEYS -DMAINTYPE=int" + -DNOARROWKEYS -DMAINTYPE=int \ + -D_DEFAULT_SOURCE -ansi" } do_install () {