Browse Source

Detect homebrew directory on macOS build.

With thanks to Elijah Cohen <eli@eli173.com> for identifying build
problems on M1 Macs.
aarch64
Andrew Alderwick 4 years ago
parent
commit
68abbc2ed8
  1. 2
      build.sh

2
build.sh

@ -34,7 +34,7 @@ MSYS_NT*) # MSYS2 on Windows
;;
Darwin) # macOS
CFLAGS="${CFLAGS} -Wno-typedef-redefinition"
UXNEMU_LDFLAGS="/usr/local/lib/libSDL2.a $(sdl2-config --cflags --static-libs | sed -e 's/-lSDL2 //')"
UXNEMU_LDFLAGS="$(brew --prefix)/lib/libSDL2.a $(sdl2-config --cflags --static-libs | sed -e 's/-lSDL2 //')"
;;
Linux|*)
UXNEMU_LDFLAGS="-L/usr/local/lib $(sdl2-config --cflags --libs)"

Loading…
Cancel
Save