[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


            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
broke NDK builds.

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