gcc 3.4.4: fixed Ubuntu 9.10 build

open() require 3 arguments now.

Signed-off-by: Marcin Juszkiewicz <marcin@buglabs.net>
This commit is contained in:
Marcin Juszkiewicz 2009-11-02 20:50:10 +01:00
parent 7688bca5df
commit 39bb1e9235
2 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,13 @@
Index: gcc-3.4.4/gcc/collect2.c
===================================================================
--- gcc-3.4.4.orig/gcc/collect2.c 2009-11-02 20:40:02.874934378 +0100
+++ gcc-3.4.4/gcc/collect2.c 2009-11-02 20:41:12.458939528 +0100
@@ -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, 0666);
/* Duplicate the stdout and stderr file handles
so they can be restored later. */

View File

@ -1,4 +1,4 @@
PR = "r6"
PR = "r7"
DESCRIPTION = "The GNU cc and gcc C compilers."
HOMEPAGE = "http://www.gnu.org/software/gcc/"
SECTION = "devel"
@ -22,7 +22,8 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://GCC3.4.0VisibilityPatch.diff;patch=1 \
file://15342.patch;patch=1 \
file://jarfix.patch;patch=1 \
file://always-fixincperm.patch;patch=1"
file://always-fixincperm.patch;patch=1 \
file://hrw-open-needs-3-args.patch"
SRC_URI += "file://gcc34-configure.in.patch;patch=1"
SRC_URI += "file://gcc34-thumb-support.patch;patch=1"