[Bug 13696] New: 1.32+ tree fails to build on Android NDK due to missing librt

bugzilla at busybox.net bugzilla at busybox.net
Wed Mar 31 23:29:43 UTC 2021


https://bugs.busybox.net/show_bug.cgi?id=13696

            Bug ID: 13696
           Summary: 1.32+ tree fails to build on Android NDK due to
                    missing librt
           Product: Busybox
           Version: 1.32.x
          Hardware: Other
                OS: Other
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: osm0sis at outlook.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 8856
  --> https://bugs.busybox.net/attachment.cgi?id=8856&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list