So in termux my program is compiling and linking to libandroid-glob.so which is providing the glob function. But my purpose was to use the result shared lib in an apk. I’m doing this because I’ve been unable to get cross compiling to work on my m1 Mac.
I used a tool to inspect the symbols in my so and it appears that glob is actually unused so I’m hoping that if I can find what dependency requires it that I can add a patch to disable it for now. Perhaps not the best solution but as much as I’m enjoying learning more about c/shared libs etc I’m losing patience and just need to get this done. Any pointers would be appreciated.