Skip to content

Commit

Permalink
vecx: fix build with GCC 11
Browse files Browse the repository at this point in the history
Closes #111514.

Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
cho-m authored and BrewTestBot committed Sep 25, 2022
1 parent ed7daeb commit 6d9adaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Formula/vecx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6d9adaa

Please sign in to comment.