diff options
-rw-r--r-- | meta/packages/binutils/binutils-2.20.1/libiberty_path_fix.patch | 20 | ||||
-rw-r--r-- | meta/packages/binutils/binutils_2.20.1.bb | 3 |
2 files changed, 22 insertions, 1 deletions
diff --git a/meta/packages/binutils/binutils-2.20.1/libiberty_path_fix.patch b/meta/packages/binutils/binutils-2.20.1/libiberty_path_fix.patch new file mode 100644 index 0000000000..36a14d7a18 --- /dev/null +++ b/meta/packages/binutils/binutils-2.20.1/libiberty_path_fix.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | don't let the distro compiler point to the wrong installation location | ||
2 | |||
3 | Thanks to RP for helping find the source code causing the issue. | ||
4 | |||
5 | 2010/08/13 | ||
6 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
7 | Index: binutils-2.20.1/libiberty/Makefile.in | ||
8 | =================================================================== | ||
9 | --- binutils-2.20.1.orig/libiberty/Makefile.in | ||
10 | +++ binutils-2.20.1/libiberty/Makefile.in | ||
11 | @@ -327,7 +327,8 @@ install: install_to_$(INSTALL_DEST) inst | ||
12 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | ||
13 | # default multilib, so we have to take CFLAGS into account as well, | ||
14 | # since it will be passed the multilib flags. | ||
15 | -MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` | ||
16 | +#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` | ||
17 | +MULTIOSDIR = "" | ||
18 | install_to_libdir: all | ||
19 | ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR) | ||
20 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n | ||
diff --git a/meta/packages/binutils/binutils_2.20.1.bb b/meta/packages/binutils/binutils_2.20.1.bb index 88a3dec280..d5cd985cca 100644 --- a/meta/packages/binutils/binutils_2.20.1.bb +++ b/meta/packages/binutils/binutils_2.20.1.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require binutils.inc | 1 | require binutils.inc |
2 | 2 | ||
3 | PR = "r1" | 3 | PR = "r2" |
4 | 4 | ||
5 | LIC_FILES_CHKSUM="\ | 5 | LIC_FILES_CHKSUM="\ |
6 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ | 6 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ |
@@ -26,6 +26,7 @@ SRC_URI = "\ | |||
26 | file://binutils-x86_64_i386_biarch.patch \ | 26 | file://binutils-x86_64_i386_biarch.patch \ |
27 | file://binutils-mips-pie.patch \ | 27 | file://binutils-mips-pie.patch \ |
28 | file://binutils-libtool.patch \ | 28 | file://binutils-libtool.patch \ |
29 | file://libiberty_path_fix.patch \ | ||
29 | " | 30 | " |
30 | 31 | ||
31 | # powerpc patches | 32 | # powerpc patches |