Hi.
Try to add 'export LDFLAGS=$(LDFLAGS) $(EXTCCLDFLAGS)' to makefile.
For some reasons, ld doesnt try to search for dynamic dependencies in 
the dirs specified by -L flag.
 From other side, it requires -rpath arg for direct call and -Wl,rpath 
as gcc arg when called as linker by gcc.

08.11.2013 18:13, Erich Titl ?????:
> Hi
>
> I am still in the process to compile 5.x. Most of the dependencies are
> solved but there are a few things that just don't fit.
>
> I am trying to link knockd (just one of the packages that don't pass)
> and I am getting
>
> make[1]: Entering directory
> `/data/leaf/devel/leaf.new/bering-uclibc/source/i486-unknown-linux-uclibc/knockd/knock-0.5'
> i486-unknown-linux-uclibc-gcc ./src/knockd.o ./src/list.o -o knockd
> -L/data/leaf/devel/leaf.new/bering-uclibc/staging/i486-unknown-linux-uclibc/lib
> -L/data/leaf/devel/leaf.new/bering-uclibc/staging/i486-unknown-linux-uclibc/usr/lib
> -L/data/leaf/devel/leaf.new/bering-uclibc/staging/i486-unknown-linux-uclibc/lib
> -L/data/leaf/devel/leaf.new/bering-uclibc/staging/i486-unknown-linux-uclibc/usr/lib
> -lpcap
> /data/leaf/devel/leaf.new/bering-uclibc/toolchain/i486-unknown-linux-uclibc/lib/gcc/i486-unknown-linux-uclibc/4.6.4/../../../../i486-unknown-linux-uclibc/bin/ld:
> warning: libusb-1.0.so.0, needed by
> /data/leaf/devel/leaf.new/bering-uclibc/staging/i486-unknown-linux-uclibc/usr/lib/libpcap.so,
> not found (try using -rpath or -rpath-link)
>
> OK, so the linker appears not to find a necessary library, but
>
> mega@luna:/data/leaf/devel/leaf.new/bering-uclibc/staging/i486-unknown-linux-uclibc/usr/lib>
> ls -l libusb-1.0.so.0.1.0
> -rwxr-xr-x 1 mega users 90820 2013-11-08 12:23 libusb-1.0.so.0.1.0
>
> shows that this library is avalable and above you can see a -L parameter
> pointing to the right location.
>
> This makes me scratch my head, especially as google seems not to know
> about -rpath :-(
>
> Any ideas
>
> Erich
>
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> leaf-devel mailing list
> leaf-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-devel

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to