Reputation: 199
High level problem statement was explained in the header. Let me put the question with a simpler example as below. Lets say, I have created a static library(staticLib.a) using source files(A.c, B.c, C.c...Z.c). This static library(staticLib.a) was used to create a final executable(./finalExe). Final executable(./FinalExe) will use functions in A.c, B.c only at one instance.
So, My question is,
Any suggestions would be highly appreciated!!
Upvotes: 0
Views: 383
Reputation: 213416
The linker will pull object files (not sources) from staticLib.a
as needed. Rebuilding the library to include fewer objects is not necessary.
Detailed description here or here.
Upvotes: 3