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
parent
ed7daeb349
commit
6d9adaa4c0
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue