3

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"?

Community
  • 1
  • 1
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
  • I have, but I cannot see if there is any difference. It dosn't complain about the flag or anything but I'm not sure if it has gone through – KaiserJohaan Nov 30 '11 at 11:31

1 Answers1

0

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 "$@"
beetoom
  • 479
  • 3
  • 9