From c3088e92699783c1ce4f93b55b0a809fecbdb067 Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Wed, 15 Feb 2023 02:40:03 +0100 Subject: [PATCH 1/2] Change sdl2 so name to pattern to support loading release versions --- src/sdl2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl2.nim b/src/sdl2.nim index cf85639..364d44b 100644 --- a/src/sdl2.nim +++ b/src/sdl2.nim @@ -23,7 +23,7 @@ else: elif defined(haiku): const LibName* = "libSDL2-2.0.so.0" else: - const LibName* = "libSDL2.so" + const LibName* = "libSDL2(|-2.0).so(|.0)" {.pop.} From 4fb436573da8eea37557ec9427d461e6d0a1c8b7 Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Wed, 15 Feb 2023 02:45:16 +0100 Subject: [PATCH 2/2] Fix sdl2 gfx so name pattern because it does not follow the others --- src/sdl2/gfx.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl2/gfx.nim b/src/sdl2/gfx.nim index af3f674..48e06f8 100644 --- a/src/sdl2/gfx.nim +++ b/src/sdl2/gfx.nim @@ -35,7 +35,7 @@ when not defined(SDL_Static): elif defined(macosx): const LibName = "libSDL2_gfx.dylib" else: - const LibName = "libSDL2_gfx(|-2.0).so(|.0)" + const LibName = "libSDL2_gfx(|-1.0).so(|.0)" else: static: echo "SDL_Static option is deprecated and will soon be removed. Instead please use --dynlibOverride:SDL2_gfx."