-L order is not respected when searching for -l, but -T fixes it

2008-07-20 Thread devsk
Hi, I filed bug http://sourceware.org/bugzilla/show_bug.cgi?id=6753 but I think I might be doing something wrong. Can someone please tell me why ld finds the right library when given an explicit -T argument and not if -T is not given but the internal script is same as the one provided with -T?

linker problem ? help needed !!!

2008-07-20 Thread kanda1979
Dear all , first of all thanks a lot for providing such a wonderful tools 'gcc' and 'ld'. i am trying to link some object files but i am getting error "System cant execute this program" i cant understand the reason because there is no appropriate descriptive error message. Pls suggest me . a

[Bug ld/6753] -L order is not respected when searching for -l, but -T fixes it

2008-07-20 Thread funtoos at yahoo dot com
--- Additional Comments From funtoos at yahoo dot com 2008-07-20 23:57 --- the command line is generated by libtool and I just passed '-v -v ' to g++ to get to the eventual ld command line. I tried adding -L= for fun but the result was same without -L=. All libs specified with -l were fo

[Bug ld/6753] New: -L order is not respected when searching for -l, but -T fixes it

2008-07-20 Thread funtoos at yahoo dot com
I am building with in prefix /home/devsk/portage and binutils is configured with: ./configure --prefix=/home/devsk/portage/usr --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --datadir=/home/devsk/portage/usr/share/binutils-data/i686-pc-linux-gnu/2.18.50.0.7 --infodir=/home/devsk/portage/usr/