Having recently walked this path, I discovered that, unfortunately, static libraries do not actually work this way.
When you create a static binary executable, the linker looks at all the functions that it needs, and then it looks at the list of provided libraries and extracts the code for each necessary function.
, , ( ar, , zip), .a, ( "A" "".) , , , . " ", .
, , () - , , , .
, , , , , . , pkg-config, ( ) , , .
, , , . , , , . GPL, , , GPL, , , .