As I saw here (Combine static libraries) I may combine more than one static library using libtool
libtool -static -o new.a old1.a old2.a
As far as I know, this will concatenate every single function from the old libraries to the new one. But what I really want are the functions from the new.a library, the others are there for dependency purpose. Is there a way to combine only the part required by the new.a from the other libraries without carrying a bunch of unnecessary code?