bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4334] MAKE FAILED: cpu-powerpc.o isn't added to libbfd.a ?


From: vincent dot riviere at freesbee dot fr
Subject: [Bug binutils/4334] MAKE FAILED: cpu-powerpc.o isn't added to libbfd.a ?
Date: 19 May 2007 13:02:09 -0000

------- 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]