From 8368375e695bb523b37be0605a5664f4a816c6ef Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 14 Sep 2021 20:33:33 +0800 Subject: [PATCH] notcurses: build on Linux --- Formula/notcurses.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Formula/notcurses.rb b/Formula/notcurses.rb index 5516dbd9e8efb..4e301000a8813 100644 --- a/Formula/notcurses.rb +++ b/Formula/notcurses.rb @@ -23,9 +23,10 @@ class Notcurses < Formula depends_on "readline" uses_from_macos "zlib" - fails_with gcc: "5" - def install + # Not curses overrides `strndup`, but this is a macro in CI + ENV.append "CFLAGS", "-Ustrndup" if OS.linux? + system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DCMAKE_INSTALL_RPATH=#{rpath}" system "cmake", "--build", "build" system "cmake", "--install", "build"