So generally, I know what this error means. But here's what's unique to my issue -
I did find this post about forcing static linking when you have static & dynamic libs with the same name - How can I force linking with a static library when a shared library of same name is present.
The thing is I'm using Ant build scripts and tried a few different things to incorporate the solution in the post above, without much success.
So my questions are -
UPDATE - I was right about the linker picking up the .dylib instead of the .a - I renamed the static library (.a) to something else and its able to find all the symbols it needs. Now the question is - how do we explicitly instruct the Ant script to pick up the .a and not the .dylib?
ANSWER - its a linker flag called force_load. So -force_load filename.a would do it.
Its a linker flag called *force_load*. So -force_load filename.a would do it.