Detect homebrew directory on macOS build.

With thanks to Elijah Cohen <eli@eli173.com> for identifying build
problems on M1 Macs.
This commit is contained in:
Andrew Alderwick 2021-12-12 20:30:33 +00:00
parent 74ab9c85ab
commit 68abbc2ed8
1 changed files with 1 additions and 1 deletions

View File

@ -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)"