Created attachment 8856 [details] Makefile.flags patch for the reported issue. The addition of librt to Makefile.flags in https://git.busybox.net/busybox/commit/?id=be5a505d771a77c640acc35ceaa470c80e62f954 broke NDK builds. /home/chris/x-tools/arm-linux-androideabi-r15c-api21-unified/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.bfd.exe: cannot find -lrt collect2.exe: error: ld returned 1 exit status Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS. Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam" make: *** [Makefile:719: busybox_unstripped] Error 1 I noticed the -lcrypt check for Android in the same area, presumably for a similar issue where the needed calls are already in bionic, so here's a patch using the same methodology to fix -lrt.
Applied, thanks
I see you simplified it! Looks good. Thanks!