Skip to content

Commit

Permalink
tenyr: fix for Ventura
Browse files Browse the repository at this point in the history
Fixes:
'SDL_image.h' file not found
  • Loading branch information
iMichka committed Apr 30, 2023
1 parent 465d5b5 commit 235ea4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/tenyr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ class Tenyr < Formula
uses_from_macos "flex" => :build

def install
inreplace "src/devices/sdlvga.c", "SDL_image.h", "SDL2/SDL_image.h"
inreplace "src/devices/sdlled.c", "SDL_image.h", "SDL2/SDL_image.h"

# Work around failure from GCC 10+ using default of `-fno-common`
# multiple definition of `...'; ....o:(.bss+0x0): first defined here
ENV.append_to_cflags "-fcommon" if OS.linux?

system "make", "BISON=#{Formula["bison"].opt_bin}/bison",
"JIT=0", "BUILDDIR=build/homebrew"

Expand Down

0 comments on commit 235ea4c

Please sign in to comment.