Hi
After several iterations of figuring out what was going wrong, I am slowly coming to the conclusion that the android build system has a potential gap in its dependency processing.
For example, when I modify a header file in src/bionic/... and I run make -j4 showcommands in src/
the files that are recompiled are not what I expected.
For example, if I modify src/bionic/libc/include/string.h, I expect nearly everything to be recompiled, but AFAIK, this does not happen.
Matter of fact, when I run the generated executable (linked with the new bionic) within the remote debugger (my target is a nexus 9), a breakpoint at memset (for example) does not coincide with the changes I've made to the bionic sources. The lines as reported by gdb do not coincide with the modifications I made to the source!!
I've had to manually do something like (find src/ -type f -name "*.[chp]*" | xargs touch) to get what is likely to be a proper build.