I'm building static library with ndk-4 and assembler coredumps on some of my assembly files. I used codesourcery assembler to create objects for these files. Now, I have no clue how to add these prebuild object files to the project. I tried to check inside their makefiles, but I don't see anything. I tried to add them to LOCAL_OBJECTS
LOCAL_OBJECTS += $(NEON_LOCAL_OBJECTS)
but it doesn't work. The value LOCAL_OBJECTS is reset to nothing inside build/core/build-binary.m开发者_运维知识库k
Most likely I'd be able to avoid that problem by swithing NDK, or build workstation (I'm using windows), but for now I only want to fix that simple problem by adding preassembled objects to the static library.
If that's impossible to do, maybe somebody can say what kind of rule I could add so that after my static library is build my rule kick-in and adds my preassembled files to the target lib? Anybody?
I have run into the same problem. After much googling I may have just stumbled onto the answer, although I haven't had the time to try it out yet. This is the Google Groups question where a similar question is posted, the poster is advised to archive the object files into a library (e.g. libfoo.a) and link that. Here is an article I found on archiving the object files into a library. Hope this is helpful.
精彩评论