g++ static library dependency chain
Suppose I created a static library
libX.a, which is in directory
Now I want to create another static library
libY.aat the same directory, and I want to "link"
libY.a, i.e., all the symbols in
libX.ato be somehow copied into
libY.a. This way, when I link
libY.ato a program
Z, I do not need to link
I know I could
arevery single symbol of
libY.a, but I would like to refer to
libX.a, and not to its symbols directly.
Does anyone know how to do it using
@canellas Why do you want to do this? In any case you will need to link your application against both static libraries, so what is the advantage of "copying" symbols from one to another?