------- Additional Comments From vincent dot riviere at freesbee dot fr
2007-05-19 14:02 -------
The problem is in the file bfd/Makefile.am, line 748.
libbfd_la_LIBADD = `cat ofiles` @WIN32LIBADD@
By default, cat opens the files in binary mode, which is not acceptable here
because of the problem described in Comment #3.
Here are 3 solutions :
1) Force cat to open files in text mode
cat doesn't have a specific option to force files to be opened in text mode.
However (from "info cat"), `cat' reads in text mode if one of the options `-
bensAE' is used. In our case, the option -s (--squeeze-blank) can be acceptable.
Replacement line :
libbfd_la_LIBADD = `cat -s ofiles` @WIN32LIBADD@
2) Do not use cat
Instead of `cat ...` we ca use $(<...). In Cygwin, it reads files in text mode.
But I'm not sure if it works with all shells...
Replacement line :
libbfd_la_LIBADD = $$(<ofiles) @WIN32LIBADD@
3) Do not put the fatal EOL info the file
It is a workaround, but may be the more compatible solution.
Line 738 :
echo $$f > tofiles
To be replaced with :
echo -n $$f > tofiles
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4334
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils