On Tuesday 17 July 2007 21:53, Denis Vlasenko wrote:

> It's strange that -lncurses is in that spot.
> If you add it to LDLIBS like SELinux does in Makefile.flags:

> ifeq ($(CONFIG_SELINUX),y)
> LDLIBS += -lselinux -lsepol
> endif

> then it has to appear AFTER $(busybox-all) block,
> because $(LDLIBS) is after it:

> # Rule to link busybox - also used during CONFIG_KALLSYMS
> # May be overridden by arch/$(ARCH)/Makefile
> quiet_cmd_busybox__ ?= LINK    $@
>       cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) $(LDFLAGS) \
>       -o $@ -Wl,-M \
>       -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
>       -Wl,--start-group $(busybox-all) -Wl,--end-group \
>       $(LDLIBS)

> You are doing something strange with -lncurses placement.
> You don't use LDLIBS, you do something else, right?

I havn't got this few lines about SELINUX in Makefile.flags so I copied from 
the ones in it, where it reads LDFLAGS - I saw this by now.
When I looked for the quiet_cmd_busybox part in Makefile, I noticed there isn't 
a $(LDLIBS) either, at least in version 1.4.2

Changed files accordingly it doesn't work.
The good thing is that I saw where to `hardcode' it and it ran smoothly. (At 
least `make install')

> > networking/lib.a(nslookup.o): In function 
> > `print_host':nslookup.c:(.text.print_host+0x46): warning: Using 
> > 'getaddrinfo' in statically linked applications requires at runtime the 
> > shared libraries from the glibc version used for linking

> Hmm.

These errors were gone, too.

Thank you for your help, Denis !!

Stefan
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to