Skip to content

Commit

Permalink
Update game-porting-toolkit.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored Jul 17, 2024
1 parent 001a9bd commit 1cfd86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/game-porting-toolkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def install

# Compiler flags for PE binaries.
ENV.append "CROSSCFLAGS", "-O3 -Wno-error=incompatible-pointer-types -Wno-error=int-conversion"

# We also need to tell the linker to add Homebrew to the rpath stack.
ENV.append "LDFLAGS", "-lSystem"
ENV.append "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
ENV.append "LDFLAGS", "-Wl,-rpath,#{HOMEBREW_PREFIX}/lib"
ENV.append "LDFLAGS", "-Wl,-rpath,@executable_path/../lib/external"

# Compiler flags for Mach-O binaries.
ENV.append_to_cflags "-O3 -Wno-deprecated-declarations -Wno-incompatible-pointer-types"
# Use an older deployment target to avoid new dyld behaviors.
Expand Down

0 comments on commit 1cfd86f

Please sign in to comment.