On Thursday 08 March 2012 18:40, Rob Walker wrote:
> Use -DANDROID instead of assuming Android has a particular compiler
> prefix (it has several).

I propose a more generic way to do this:

CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) 
$(1) -lcrypt -o /dev/null -xc - >/dev/null 2>&1 && echo "y")
ifeq ($(CRYPT_AVAILABLE),y)
LDLIBS += m crypt
else
LDLIBS += m
endif

-- 
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to