On Saturday 10 March 2012 19:45, Rob Walker wrote:
> On 3/10/12 7:29 AM, Denys Vlasenko wrote:
> > 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
>
> That looks like something that could be in trylink instead of the Makefile.

Hmm. Can be...

> What's the $(1) after $(CFLAGS) for?

A mistake :) I removed it, thanks!

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

Reply via email to