Re: Finding dlltool using gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2011年09月23日 10:02, Bin Tian wrote:
Hi, all

On 2011年09月21日 22:06, Ian Lance Taylor wrote:
Stephen Kitt<steve@xxxxxxx> writes:

Is there a recommended approach to use to find dlltool using only
i686-w64-mingw32-gcc?

I don't know of one. I don't know why avoiding autoconf is desirable.
However, if I were forced to do so, I would probably use gcc -v to get
the target name and look for TARGET-dlltool that way.
gcc -dumpmachine is more relavant.

autoconf should be the proper way, because it deals with more
circumstances. Any other attempts will be reinventing the wheel.

If autoconf is not desirable, we should try to find it in autoconf's
way, try $target-dlltool first and dlltool next.


I am wrong in dropping /usr/$target/bin?

No, you are right. That directory is used to communicate programs from
the binutils to gcc, and there are no promises about what binaries may
be found there.


Despite the fact I submit the bug, I think this isn't a bug.

We could do nothing and just wait multiarch to be ready. There will be
dlltool in /usr/$target/bin, isn't it?
sorry I'm wrong. /usr/$target/bin contains programs running on $target, this isn't true for cross-compiling toolchains.

Bin Tian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux