-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mklibs-native buildable with GCC 4.7 or newer
mklibs needs this small patch in oerder for GCC 4.7 to be able to build it. Details: http://lists.debian.org/debian-boot/2012/04/msg00057.html This adds the patch and modifies the mklibs-native_0.1.33.bb recipe.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
With GCC 4.7 or newer the package would fail to build with this error: | ||
|
||
elf.cpp:68:5: error: '::close' has not been declared | ||
|
||
This adds the unistd.h header so the ::close() function is defined. | ||
|
||
Diff: | ||
http://lists.debian.org/debian-boot/2012/04/msg00057.html | ||
|
||
|
||
diff -Nru mklibs-0.1.33/src/mklibs-readelf/elf.cpp mklibs-0.1.33+nmu1/src/mklibs-readelf/elf.cpp | ||
--- mklibs-0.1.33/src/mklibs-readelf/elf.cpp 2011-01-18 00:41:29.000000000 +0000 | ||
+++ mklibs-0.1.33+nmu1/src/mklibs-readelf/elf.cpp 2012-04-05 00:15:09.000000000 +0000 | ||
@@ -25,6 +25,7 @@ | ||
#include <fcntl.h> | ||
#include <sys/mman.h> | ||
#include <sys/stat.h> | ||
+#include <unistd.h> | ||
|
||
using namespace Elf; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters