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()