I'm writing a static lib that needs to handle XML. I want it to include everything that is necessary out of the box but I don't know how to make other static libs link to it, namely libxml2.
I pass the -c
flag to gcc to generate .o
that ar
then uses to create the lib. What magic flag combination must I pass to have my static lib swallow libxml2?
Manually merge the objects into a new static library instance: