From 4bc788884cd1bce80d5aef6264c28e912876e6c9 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Thu, 7 May 2020 18:35:15 -0600 Subject: [PATCH] Add ranlib just in case --- src/sdl2/sdl2_image.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl2/sdl2_image.nim b/src/sdl2/sdl2_image.nim index 0f693b9..c2d0857 100644 --- a/src/sdl2/sdl2_image.nim +++ b/src/sdl2/sdl2_image.nim @@ -52,6 +52,9 @@ static: let res = execAction(&"ar ru {staticFile} {buildDir}/*.o") if res.ret != 0: raise newException(CatchableError, &"Error: could not build static lib {staticFile}") + let ranres = execAction(&"ranlib {staticFile}") + if ranres.ret != 0: + raise newException(CatchableError, &"Error: could not build static lib {staticFile}") # cDebug() # cDisableCaching()