Commit 9e114500 authored by Wade Berrier's avatar Wade Berrier
Browse files

Fix gcc 3.4.6 build with newer host libc versions

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: default avatarWade Berrier <wberrier@gmail.com>
parent 72044881
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
--- 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.  */