So how do I indicate that I want it to link (statically) to the .a, not dynamically to the .so?
Two ways:
- Link using the full library path
/usr/lib/libuseme.a
instead of-luseme
- Tell the linker that you want archive copy:
-Wl,-Bstatic -luseme -Wl,-Bdynamic