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
Michael Cho 2022-09-22 16:55:06 -07:00 committed by BrewTestBot
parent 54b7288ecf
commit a29b6b8009
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ class Sz81 < Formula
depends_on "sdl12-compat"
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[
PREFIX=#{prefix}
BINDIR=#{bin}