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:
parent
74ab9c85ab
commit
68abbc2ed8
1 changed files with 1 additions and 1 deletions
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…
Reference in a new issue