Compile to static lib.