~rabbits/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] (build.sh) Remove special handling of SDL2 library on macOS.

Details
Message ID
<20231029201822.73753-1-remko@el-tramo.be>
DKIM signature
missing
Download raw message
Patch: +1 -1
--static-libs already uses the static library, so the special handling
does nothing.
Depending on the `brew` executable in the build blocks using the build
script inside a brew formula.
---
 build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 9f29772..59e5e1f 100755
--- a/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)"
-- 
2.39.0
Reply to thread Export thread (mbox)