--- Comment #5 from pinskia at gcc dot gnu dot org 2009-11-11 06:08 ---
well most targets are multilibbed now so I never saw it. I think you should
just remove -lm then .
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42001
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-11-11 06:07 ---
It works for me:
pins...@gcc13:~/src/local$ gcc -r t.o t1.o -nostdlib -lm -v -B
/home/pinskia/src/gcc/local/gcc/objdir/gcc -Wl,-v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--
--- Comment #3 from hjl dot tools at gmail dot com 2009-11-11 06:05 ---
You have to see it on a machine without multilib support.
Otherwise, gcc driver will pass -L... to linker.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42001
--- Comment #2 from hjl dot tools at gmail dot com 2009-11-11 06:02 ---
GNU linker doesn't search any directories when "-r" is used.
Gcc driver doesn't pass explicit search directories to linker:
[...@gnu-29 gcc]$ ./xgcc -B./ -v x.o
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-11 05:39 ---
A simple test like:
gcc -r t.o t1.o -nostdlib -lm -v -B /home/pinskia/src/gcc/local/gcc/objdir/gcc
Works so I don't know what is going wrong with your build.
The only thing I can think of is that your ld is build in