Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report.
Summary: Review Request: avr-binutils - Cross Compiling GNU binutils targeted at avr
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=234750
------- Additional Comments From rc040203@freenet.de 2007-04-01 14:19 EST ------- In reply to comment #5)
- --target-prefix
Superfluous
Nope, I thought so too, but %configure does something which makes this necessary (probably passing -bindir).
ATM, I am short on time, so just a short note without having tried to check details:
You observation probably is the result of one of two bugs in rpm: - redhat-rpm-config kills config.sub/config.guess and replaces them with ancient versions. This is inappropriate for binutils, gcc etc. because they ship with much newer versions, esp. for those targettting embedded systems, which often ship customized versions.
- %configure overrides --host, --build ... This is wrong for cross-compilation.
The work-around to both issues is not to use %configure, but to directly use configure with all "--*dir" options explicitly passed directly
[adding jwilson, because this bug is one of those I repeatedly had complained about]