Skip to content

Commit 9d54c72

Browse files
authored
Merge pull request #229827 from etcusrvar/fix-ncurses-gcc
ncurses: update CFLAGS when building with gcc>=15
2 parents 934a808 + 2f17704 commit 9d54c72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Formula/n/ncurses.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def install
5252
]
5353
args << "--with-terminfo-dirs=#{share}/terminfo:/etc/terminfo:/lib/terminfo:/usr/share/terminfo" if OS.linux?
5454

55+
odie "`-std=gnu17` workaround should be removed!" if build.stable? && version > "6.5"
56+
ENV.append_to_cflags "-std=gnu17" if OS.linux? && DevelopmentTools.gcc_version("gcc") >= 15
57+
5558
system "./configure", *args
5659
system "make", "install"
5760
make_libncurses_symlinks

0 commit comments

Comments
 (0)