Use -DANDROID instead of assuming Android has a particular compiler
prefix (it has several).

-Rob

diff --git a/Makefile.flags b/Makefile.flags
index ee4c518..5affd88 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -97,11 +97,11 @@ 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
+
+# Android libc has no crypt. TODO: make a generic CONFIG_LINK_WITH_CRYPT 
option?
+ifeq ($(filter -DANDROID,$(CFLAGS))$(filter -D__ANDROID__,$(CFLAGS)),)
+LDLIBS += crypt
 endif
 
 ifeq ($(CONFIG_PAM),y)
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to