* [Buildroot] [git commit] Fix gcc 3.4.6 build with newer host libc versions
@ 2009-05-12 19:32 Wade Berrier
0 siblings, 0 replies; only message in thread
From: Wade Berrier @ 2009-05-12 19:32 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=9e114500d500ade3472db9d8663cf6013a5f928b
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
The build of gcc 3.4.6 fails when host libc is too new.
I pulled the fix from this bug report:
http://bugs.openembedded.net/show_bug.cgi?id=4626
Signed-off-by: Wade Berrier <wberrier@gmail.com>
---
toolchain/gcc/3.4.6/950-open_ocreat_mode.patch | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
create mode 100644 toolchain/gcc/3.4.6/950-open_ocreat_mode.patch
diff --git a/toolchain/gcc/3.4.6/950-open_ocreat_mode.patch b/toolchain/gcc/3.4.6/950-open_ocreat_mode.patch
new file mode 100644
index 0000000..5dba905
--- /dev/null
+++ b/toolchain/gcc/3.4.6/950-open_ocreat_mode.patch
@@ -0,0 +1,11 @@
+--- gcc-3.4.6/gcc/collect2.c.orig 2009-05-11 13:00:31.000000000 -0600
++++ gcc-3.4.6/gcc/collect2.c 2009-05-11 13:00:26.000000000 -0600
+@@ -1534,7 +1534,7 @@
+ if (redir)
+ {
+ /* Open response file. */
+- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
++ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, O_RDWR);
+
+ /* Duplicate the stdout and stderr file handles
+ so they can be restored later. */
--
1.6.0.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-12 19:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-12 19:32 [Buildroot] [git commit] Fix gcc 3.4.6 build with newer host libc versions Wade Berrier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.