I am writing a reusable static library for the iPhone, following the directions provided here.
I want to use minizip
in my library internally, but don\'
You could rename all exported symbol from minizip
with objcopy.
something like
objcopy -redefine-sym=minizip.syms yourstaticlibray.a
and minizip.syms
_unzOpen _yourownprefix_unzOpen
_unzOpen2 _yourownprefix_unzOpen2
... ...
No clash if an executable is linked with an other minizip.a
and yourstaticlibray.a
, and because you renamed all the symbol in yourstaticlibray.a
your call inside yourstaticlibray.a
to minizip
will use the prefixed symbol, and not the unzOpen one.