uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 68abbc2ed874aed8924032377df92084fe207900
parent 74ab9c85ab616db325c7657e130c1cc2b1e6fb17
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 12 Dec 2021 20:30:33 +0000

Detect homebrew directory on macOS build.

With thanks to Elijah Cohen <eli@eli173.com> for identifying build
problems on M1 Macs.

Diffstat:
Mbuild.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.sh b/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)"