summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/mklibs/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/mklibs/files')
-rw-r--r--meta/recipes-devtools/mklibs/files/ac_init_fix.patch19
-rw-r--r--meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch26
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mklibs/files/ac_init_fix.patch b/meta/recipes-devtools/mklibs/files/ac_init_fix.patch
new file mode 100644
index 0000000000..422af10420
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/files/ac_init_fix.patch
@@ -0,0 +1,19 @@
1Get the version of mklibs by simpler means. The MKLIBS_VERSION string in the
2configure.ac file is replaced with real version string by the
3do_configure_prepend() function from the recipe .bb file.
4
5Upstream-Status: Inappropriate [configuration]
6
7Nitin A Kamble <nitin.a.kamble@intel.com>
8Date: 2011/01/24
9
10Index: mklibs/configure.ac
11===================================================================
12--- mklibs.orig/configure.ac 2010-02-21 17:34:56.000000000 -0800
13+++ mklibs/configure.ac 2011-01-24 18:52:19.943242079 -0800
14@@ -1,4 +1,4 @@
15-AC_INIT([mklibs],m4_esyscmd(dpkg-parsechangelog | perl -ne 'print $1 if m/^Version: (.*)$/;'))
16+AC_INIT([mklibs], MKLIBS_VERSION)
17 AM_INIT_AUTOMAKE([foreign no-define])
18 AC_CONFIG_HEADERS([config.h])
19 AM_MAINTAINER_MODE
diff --git a/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch b/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch
new file mode 100644
index 0000000000..d27a48916d
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch
@@ -0,0 +1,26 @@
1The libc6-dev in Ubuntu 9.04 is so old that the elf.h doesn't
2define STT_GNU_IFUNC, so we have to define it ourselves.
3
4Upstream-Status: Inappropriate [other] - old release specific, maybe removable
5
6-- Dexuan Cui (dexuan.cui@intel.com) Feb 16, 2011.
7
8diff --git a/src/mklibs-readelf/main.cpp b/src/mklibs-readelf/main.cpp
9index 2444c39..56d93f8 100644
10--- a/src/mklibs-readelf/main.cpp
11+++ b/src/mklibs-readelf/main.cpp
12@@ -6,6 +6,14 @@
13 #include <vector>
14
15 #include <elf.h>
16+/*
17+ * The /usr/include/elf.h in some distributions(like Ubuntu 9.04) doesn't
18+ * define the macro. We need to define it here.
19+ */
20+#ifndef STT_GNU_IFUNC
21+#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
22+#endif
23+
24 #include <getopt.h>
25
26 #include "elf.hpp"