From 5e3c12313edc4b51ddd432ecbbd3b1f5295b3c14 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Thu, 12 Apr 2012 07:49:02 -0700 Subject: 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 to remove namespace pollution in gcc 4.7, so we need include manually sometimes. More information: http://gcc.gnu.org/gcc-4.7/porting_to.html [YOCTO #2278] Signed-off-by: Robert Yang [Updated patch header - sgw] Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- .../mklibs/files/include-unistd.h-for-gcc47.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch (limited to 'meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch') 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 000000000..baa12bdaa --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch @@ -0,0 +1,43 @@ +include to fix build on gcc 4.7 + +Many of the standard C++ library include files have been edited to no +longer include to remove namespace pollution in gcc 4.7, so +we need include manually sometimes. + +mklibs (0.1.33+nmu1) UNRELEASED; urgency=low + * Non-maintainer upload + * Fix FTBFS with gcc 4.7 due to missing include (Closes: #667282). + +-- Cyril Brulebois Thu, 05 Apr 2012 00:15:27 +0000 + +mklibs (0.1.33) unstable; urgency=low + + * Adjust the libc_pic directory for multiarch as well. + +Upstream-Status: Backport + +Signed-off-by: Robert Yang + +[Added upstream information about patch] + +Signed-off-by: Saul Wold + +--- + src/mklibs-readelf/elf.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/mklibs-readelf/elf.cpp b/src/mklibs-readelf/elf.cpp +index 444f330..654c46f 100644 +--- a/src/mklibs-readelf/elf.cpp ++++ b/src/mklibs-readelf/elf.cpp +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + using namespace Elf; + +-- +1.7.10 + -- cgit v1.2.3