diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2012-04-12 07:49:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 12:05:53 +0100 |
commit | 898bee7a4e97d74e5da4381188a2f3e030d3f0e4 (patch) | |
tree | a8dabf9669463d1eb4c53a1bc36592475a315538 /meta/recipes-devtools/mklibs | |
parent | 100e3c9b75c17299ea8eaac94c94c078412b0800 (diff) | |
download | poky-898bee7a4e97d74e5da4381188a2f3e030d3f0e4.tar.gz |
mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
Many of the standard C++ library include files have been edited to no
longer include <unistd.h> to remove namespace pollution in gcc 4.7, so
we need include <unistd.h> manually sometimes.
More information:
http://gcc.gnu.org/gcc-4.7/porting_to.html
[YOCTO #2278]
(From OE-Core rev: 5e3c12313edc4b51ddd432ecbbd3b1f5295b3c14)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
[Updated patch header - sgw]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/mklibs')
-rw-r--r-- | meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch | 43 | ||||
-rw-r--r-- | meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb | 3 |
2 files changed, 45 insertions, 1 deletions
diff --git a/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch b/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch new file mode 100644 index 0000000000..baa12bdaaa --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | include <unistd.h> to fix build on gcc 4.7 | ||
2 | |||
3 | Many of the standard C++ library include files have been edited to no | ||
4 | longer include <unistd.h> to remove namespace pollution in gcc 4.7, so | ||
5 | we need include <unistd.h> manually sometimes. | ||
6 | |||
7 | mklibs (0.1.33+nmu1) UNRELEASED; urgency=low | ||
8 | * Non-maintainer upload | ||
9 | * Fix FTBFS with gcc 4.7 due to missing <unistd.h> include (Closes: #667282). | ||
10 | |||
11 | -- Cyril Brulebois <kibi@debian.org> Thu, 05 Apr 2012 00:15:27 +0000 | ||
12 | |||
13 | mklibs (0.1.33) unstable; urgency=low | ||
14 | |||
15 | * Adjust the libc_pic directory for multiarch as well. | ||
16 | |||
17 | Upstream-Status: Backport | ||
18 | |||
19 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
20 | |||
21 | [Added upstream information about patch] | ||
22 | |||
23 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
24 | |||
25 | --- | ||
26 | src/mklibs-readelf/elf.cpp | 1 + | ||
27 | 1 file changed, 1 insertion(+) | ||
28 | |||
29 | diff --git a/src/mklibs-readelf/elf.cpp b/src/mklibs-readelf/elf.cpp | ||
30 | index 444f330..654c46f 100644 | ||
31 | --- a/src/mklibs-readelf/elf.cpp | ||
32 | +++ b/src/mklibs-readelf/elf.cpp | ||
33 | @@ -25,6 +25,7 @@ | ||
34 | #include <fcntl.h> | ||
35 | #include <sys/mman.h> | ||
36 | #include <sys/stat.h> | ||
37 | +#include <unistd.h> | ||
38 | |||
39 | using namespace Elf; | ||
40 | |||
41 | -- | ||
42 | 1.7.10 | ||
43 | |||
diff --git a/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb b/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb index d288c77afb..a8d12ec17d 100644 --- a/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb +++ b/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb | |||
@@ -5,11 +5,12 @@ LICENSE = "GPLv2+" | |||
5 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=98d31037b13d896e33890738ef01af64" | 5 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=98d31037b13d896e33890738ef01af64" |
6 | DEPENDS = "python-native" | 6 | DEPENDS = "python-native" |
7 | 7 | ||
8 | PR = "r0" | 8 | PR = "r1" |
9 | 9 | ||
10 | SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.gz \ | 10 | SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.gz \ |
11 | file://ac_init_fix.patch\ | 11 | file://ac_init_fix.patch\ |
12 | file://fix_STT_GNU_IFUNC.patch\ | 12 | file://fix_STT_GNU_IFUNC.patch\ |
13 | file://include-unistd.h-for-gcc47.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRC_URI[md5sum] = "a462d9b802164993d247c1193116d78b" | 16 | SRC_URI[md5sum] = "a462d9b802164993d247c1193116d78b" |