How to generate .a and .so files to add in arduino project

I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib.

So I need to make a library with precompiled=true info at library.properties. And I need to put my .a and .so files at src/{build.mcu} (in my case, src/avr/mylib.a and mylib.so).

But, where is that files (.a and .so)?!

Does the arduino compiler generate this files? If so, where? If dont, how compiler I need to use?

I found the .o file at appData\local\Temp\arduino_build_XXXX\libraries\mylib\

Thank you very much and sory about my english.

Does the arduino compiler generate this files?

Enable verbose mode when compiling, and see for yourself. The answer is no, as the normal compile/link/upload process does not need them.

Thankyou for you early help.
Do you know which compiler I can use to generate this files? I think should be one compatible compiler.

Do you know which compiler I can use to generate this files?

There is most likely a compiler option for the gcc compiler (that you refer to as "the Arduino compiler") that will tell it to create the .a or .so files. When I used Unix, years ago, one used either .a files or .so files, depending on which version of Unix you were using.

Thank you Brattain.

I make using avr-gcc-a using Arduino IDE.

The resolution I posted here: How to generate .a and .so files to add in arduino project - Arduino Stack Exchange

Best regards.