Search code examples
androidmakefilecygwinandroid-ndk

Android ndk - set maximum number of simultainous jobs?


I have the same problem as this one: Android ndk build mysteriously failing under cygwin with "Error 126"

Occassionaly I get that error too. The solution suggests adding "-j 1" when you do make.. but how does that translate into when you use the ndk-build script? Is it simply "ndk-build -j 1"?


Solution

  • I think you need to edit ndk-build script itself, and pass -j1 to $GNUMAKE.

    You will end up with something like this:

    $GNUMAKE -j1 -f $PROGDIR/build/core/build-local.mk "$@"