sz81: fix build with GCC 11
Closes #111478. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
54b7288ecf
commit
a29b6b8009
|
@ -18,6 +18,10 @@ class Sz81 < Formula
|
||||||
depends_on "sdl12-compat"
|
depends_on "sdl12-compat"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
# Work around failure from GCC 10+ using default of `-fno-common`
|
||||||
|
# /usr/bin/ld: common.o:(.bss+0x127e0): multiple definition of `sdl_zx80rom'
|
||||||
|
ENV.append_to_cflags "-fcommon" if OS.linux?
|
||||||
|
|
||||||
args = %W[
|
args = %W[
|
||||||
PREFIX=#{prefix}
|
PREFIX=#{prefix}
|
||||||
BINDIR=#{bin}
|
BINDIR=#{bin}
|
||||||
|
|
Loading…
Reference in New Issue