ar should not be invoked with CMAKE_STATIC_LINKER_FLAGS
Currently, CMake erroneously passes
ar, which should never happen as far as I can tell.
Maybe I'm missing something obvious here and you can help me out.
I also found this old thread on the internet regarding this issue: https://cmake.org/pipermail/cmake/2016-January/062446.html