Subversion Repositories HelenOS

Rev

Rev 3369 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3369 Rev 3799
Line 17... Line 17...
17
 
17
 
18
if [ -z "${CROSS_PREFIX}" ] ; then
18
if [ -z "${CROSS_PREFIX}" ] ; then
19
    CROSS_PREFIX="/usr/local"
19
    CROSS_PREFIX="/usr/local"
20
fi
20
fi
21
 
21
 
22
BINUTILS_VERSION="2.18"
22
BINUTILS_VERSION="2.19"
23
GCC_VERSION="4.3.1"
23
GCC_VERSION="4.3.2"
24
 
24
 
25
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
25
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
26
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
26
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
27
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
27
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
28
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
28
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
Line 82... Line 82...
82
check_error $? "Error unpacking GCC C++."
82
check_error $? "Error unpacking GCC C++."
83
 
83
 
84
echo ">>> Compiling and installing binutils"
84
echo ">>> Compiling and installing binutils"
85
cd "${BINUTILSDIR}"
85
cd "${BINUTILSDIR}"
86
check_error $? "Change directory failed."
86
check_error $? "Change directory failed."
-
 
87
patch -p1 <<EOF
-
 
88
diff -Naur binutils-2.19.orig/bfd/elfxx-mips.c binutils-2.19/bfd/elfxx-mips.c
-
 
89
--- binutils-2.19.orig/bfd/elfxx-mips.c 2008-08-18 20:14:04.000000000 +0200
-
 
90
+++ binutils-2.19/bfd/elfxx-mips.c  2009-01-18 18:14:47.292011299 +0100
-
 
91
@@ -1409,7 +1409,7 @@
-
 
92
    function, or 0 if we can't decide which function that is.  */
-
 
93
 
-
 
94
 static unsigned long
-
 
95
-mips16_stub_symndx (asection *sec, const Elf_Internal_Rela *relocs,
-
 
96
+mips16_stub_symndx (asection *sec __attribute__((unused)), const Elf_Internal_Rela *relocs,
-
 
97
            const Elf_Internal_Rela *relend)
-
 
98
 {
-
 
99
   const Elf_Internal_Rela *rel;
-
 
100
EOF
-
 
101
check_error $? "Error patching binutils"
87
./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls"
102
./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls"
88
check_error $? "Error configuring binutils."
103
check_error $? "Error configuring binutils."
89
make all install
104
make all install
90
check_error $? "Error compiling/installing binutils."
105
check_error $? "Error compiling/installing binutils."
91
 
106