Skip to content

Commit 8c28fc6

Browse files
authored
Merge pull request #216412 from Homebrew/hexcurse-linux-arm
hexcurse: fix multiple definition build issue with gcc 10+
2 parents 502c9ff + 0310c02 commit 8c28fc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Formula/h/hexcurse.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ class Hexcurse < Formula
2626
uses_from_macos "ncurses"
2727

2828
def install
29-
system "./configure", "--disable-dependency-tracking",
30-
"--prefix=#{prefix}",
31-
"--mandir=#{man}"
29+
# Work around failure from GCC 10+ using default of `-fno-common`
30+
# multiple definition of `fpIN'; file.o:(.bss+0x0): first defined here
31+
ENV.append_to_cflags "-fcommon" if OS.linux?
32+
33+
system "./configure", "--mandir=#{man}", *std_configure_args
3234
system "make", "install"
3335
end
3436

0 commit comments

Comments
 (0)