From 972dcfcdbfe75dcfeb777150c136576cf1a71e99 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 9 Oct 2015 22:59:03 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- .../mklibs/files/ac_init_fix.patch | 19 ++++++++++++++++ .../mklibs/files/fix_STT_GNU_IFUNC.patch | 26 ++++++++++++++++++++++ .../mklibs/files/sysrooted-ldso.patch | 18 +++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 meta/recipes-devtools/mklibs/files/ac_init_fix.patch create mode 100644 meta/recipes-devtools/mklibs/files/fix_STT_GNU_IFUNC.patch create mode 100644 meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch (limited to 'meta/recipes-devtools/mklibs/files') 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 @@ +Get the version of mklibs by simpler means. The MKLIBS_VERSION string in the +configure.ac file is replaced with real version string by the +do_configure_prepend() function from the recipe .bb file. + +Upstream-Status: Inappropriate [configuration] + +Nitin A Kamble +Date: 2011/01/24 + +Index: mklibs/configure.ac +=================================================================== +--- mklibs.orig/configure.ac 2010-02-21 17:34:56.000000000 -0800 ++++ mklibs/configure.ac 2011-01-24 18:52:19.943242079 -0800 +@@ -1,4 +1,4 @@ +-AC_INIT([mklibs],m4_esyscmd(dpkg-parsechangelog | perl -ne 'print $1 if m/^Version: (.*)$/;')) ++AC_INIT([mklibs], MKLIBS_VERSION) + AM_INIT_AUTOMAKE([foreign no-define]) + AC_CONFIG_HEADERS([config.h]) + 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 @@ +The libc6-dev in Ubuntu 9.04 is so old that the elf.h doesn't +define STT_GNU_IFUNC, so we have to define it ourselves. + +Upstream-Status: Inappropriate [other] - old release specific, maybe removable + +-- Dexuan Cui (dexuan.cui@intel.com) Feb 16, 2011. + +diff --git a/src/mklibs-readelf/main.cpp b/src/mklibs-readelf/main.cpp +index 2444c39..56d93f8 100644 +--- a/src/mklibs-readelf/main.cpp ++++ b/src/mklibs-readelf/main.cpp +@@ -6,6 +6,14 @@ + #include + + #include ++/* ++ * The /usr/include/elf.h in some distributions(like Ubuntu 9.04) doesn't ++ * define the macro. We need to define it here. ++ */ ++#ifndef STT_GNU_IFUNC ++#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */ ++#endif ++ + #include + + #include "elf.hpp" diff --git a/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch b/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch new file mode 100644 index 0000000000..75500a029a --- /dev/null +++ b/meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch @@ -0,0 +1,18 @@ +In cross builds we will have to respect sysroot + +Signed-off-by: Khem Raj +Upstream-Status: Pending + +Index: mklibs-0.1.39/src/mklibs +=================================================================== +--- mklibs-0.1.39.orig/src/mklibs 2014-03-01 18:25:36.000000000 +0000 ++++ mklibs-0.1.39/src/mklibs 2014-10-19 00:51:46.813534596 +0000 +@@ -495,7 +495,7 @@ + present_symbols = {} + checked_libs = small_libs + checked_libs.extend(available_libs) +- checked_libs.append(ldlib) ++ checked_libs.append(sysroot + ldlib) + for lib in checked_libs: + for symbol in provided_symbols(lib): + debug(DEBUG_SPAM, "present_symbols adding %s" % symbol) -- cgit v1.2.3-54-g00ecf