diff --git a/build.sh b/build.sh index 9f29772..59e5e1f 100755 --- a/build.sh +++ b/build.sh @@ -65,7 +65,7 @@ MSYS_NT*|MINGW*) # MSYS2 on Windows ;; Darwin) # macOS CFLAGS="${CFLAGS} -Wno-typedef-redefinition -D_C99_SOURCE" - UXNEMU_LDFLAGS="$(brew --prefix)/lib/libSDL2.a $(sdl2-config --cflags --static-libs | sed -e 's/-lSDL2 //')" + UXNEMU_LDFLAGS="$(sdl2-config --cflags --static-libs)" ;; Linux|*) UXNEMU_LDFLAGS="-L/usr/local/lib $(sdl2-config --cflags --libs)"