1
0
Fork 0
forked from mirror/openwrt
openwrt/package
John Audia 3d776d31a4 ncurses: Add -std=gnu17 to CFLAGS to avoid a GCC15 error when building with glibc
Without the newly introduced flag, building with libc ends in errors such the below.
There is an upstream fix[1], but backporting it is not straight forward.

/scratch/union/staging_dir/toolchain-x86_64_gcc-15.1.0_glibc/x86_64-openwrt-linux-gnu/include/c++/15.1.0/cstddef:81:21: error: redefinition of 'struct std::__byte_operand<unsigned char>'
   81 |   template<> struct __byte_operand<unsigned char> { using __type = byte; };
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/union/staging_dir/toolchain-x86_64_gcc-15.1.0_glibc/x86_64-openwrt-linux-gnu/include/c++/15.1.0/cstddef:78:21: note: previous definition of 'struct std::__byte_operand<unsigned char>'
   78 |   template<> struct __byte_operand<bool> { using __type = byte; };
      |                     ^~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:438: ../obj_s/cursesp.o] Error 1

1. https://ncurses.scripts.mit.edu/?p=ncurses.git;a=commit;h=394a1a6cf317912584592e33184ef550e738a4b9

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/19335
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-09 10:38:27 +02:00
..
base-files base-files: handle packages alternatives when apk removes packages 2025-06-23 09:39:12 +02:00
boot uboot-mediatek: force update_cache_variants to use reset for Foresee NAND 2025-07-04 17:39:06 +08:00
devel perf: disable slang support 2025-06-16 23:22:59 +02:00
firmware qualcommax: ipq50xx: Add support for Yuncore AX830 2025-06-30 14:04:31 +02:00
kernel mt76: update to Git HEAD (2025-07-07) 2025-07-07 19:40:34 +02:00
libs ncurses: Add -std=gnu17 to CFLAGS to avoid a GCC15 error when building with glibc 2025-07-09 10:38:27 +02:00
network nftables: update to 1.1.3 2025-07-07 20:49:25 +02:00
system fstools: update to Git HEAD (2025-07-05) 2025-07-05 15:21:02 +02:00
utils ucode: fix an issue in exception handling improvement for ubus/uloop 2025-07-06 22:05:30 +02:00
Makefile package: rework contents of package index.json 2025-06-11 16:55:31 +02:00