mount: resolve hosts to IPs in nfs mounts
[oweals/busybox.git] / Makefile.flags
index b3e13713d8934adfcaee2c8068522479bc75072a..7e1c6030c7dee8268bfb20e2711c874afbcb1025 100644 (file)
@@ -97,7 +97,12 @@ CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS)))
 #"))
 endif
 
+ifneq ($(CONFIG_CROSS_COMPILER_PREFIX),"arm-linux-androideabi-")
 LDLIBS += m crypt
+else
+# Android libc has no crypt. TODO: make a generic CONFIG_LINK_WITH_CRYPT option?
+LDLIBS += m
+endif
 
 ifeq ($(CONFIG_PAM),y)
 LDLIBS += pam pam_misc