summaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
authorDenys Vlasenko2011-09-09 18:00:44 +0200
committerDenys Vlasenko2011-09-09 18:00:44 +0200
commite0894f567ad379f554300886ae3adf087be1efa2 (patch)
tree6de585b75c3748962adcffde6c4b980a495070d2 /Makefile.flags
parent831756bac440ce5f582305a81fd2b842eb255fc3 (diff)
downloadbusybox-e0894f567ad379f554300886ae3adf087be1efa2.zip
busybox-e0894f567ad379f554300886ae3adf087be1efa2.tar.gz
Android build fixes and alternate (hopefully simpler) defconfig for it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index b3e1371..7e1c603 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -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