0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-23 14:25:10 +00:00

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

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