http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01104.html

Jim Wilson wilson@cygnus.com
Mon May 22 15:54:00 GMT 2000


In article < orbt1z5v17.fsf@tamanduatei.dcc.unicamp.br > you write:
>AFAIK, multiple -B flags accumulate, and they're searched
>left-to-right.

-B flags are prepended to gcc's internal search lists.  Hence, the last
one specified is the first one searched, and they are searched right to left.
It has always been this way.

The part of H.J.'s patch that puts the gcc -B option last is correct.
When -B flags were added to the Makefiles, there were put in the wrong order,
and no one noticed for a long time because the order matters only when
binutils changes in an incompatible way.

The part of H.J.'s patch that I don't understand is why he adds a
-B option pointing to a library directory: -B$(build_tooldir)/lib/.
There are no executables there, so adding a -B option for that directory
seems wrong and unnecessary.

Jim


More information about the Binutils mailing list