vecx: fix build with GCC 11

Closes #111514.

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-23 00:30:19 -07:00 committed by BrewTestBot
parent ed7daeb349
commit 6d9adaa4c0
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ class Vecx < Formula
def install
# Fix missing symobls for inline functions
# https://github.com/jhawthorn/vecx/pull/3
inreplace ["e6809.c", "vecx.c"], /__inline/, 'static \1' if OS.mac?
if OS.mac?
inreplace ["e6809.c", "vecx.c"], /__inline/, 'static \1'
else
inreplace "Makefile", /^CFLAGS :=/, "\\0 -fgnu89-inline "
end
system "make"
bin.install "vecx"