diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index 79e2a1205e..43e2aa232b 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc | |||
@@ -13,6 +13,12 @@ LICENSE = "GPLv3" | |||
13 | 13 | ||
14 | DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native" | 14 | DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native" |
15 | 15 | ||
16 | # | ||
17 | # we need chrpath > 0.14 and some distros like centos 7 still have older chrpath | ||
18 | # | ||
19 | DEPENDS_append_class-target = " chrpath-replacement-native" | ||
20 | EXTRANATIVEPATH_append_class-target = " chrpath-native" | ||
21 | |||
16 | inherit autotools gettext multilib_header texinfo | 22 | inherit autotools gettext multilib_header texinfo |
17 | 23 | ||
18 | FILES_${PN} = " \ | 24 | FILES_${PN} = " \ |
@@ -51,6 +57,7 @@ USE_ALTERNATIVES_FOR = " \ | |||
51 | strings \ | 57 | strings \ |
52 | strip \ | 58 | strip \ |
53 | " | 59 | " |
60 | USE_ALTERNATIVES_FOR_remove_mips = "ld.gold dwp" | ||
54 | 61 | ||
55 | python do_package_prepend() { | 62 | python do_package_prepend() { |
56 | make_alts = d.getVar("USE_ALTERNATIVES_FOR", True) or "" | 63 | make_alts = d.getVar("USE_ALTERNATIVES_FOR", True) or "" |
@@ -111,6 +118,10 @@ do_configure () { | |||
111 | done | 118 | done |
112 | } | 119 | } |
113 | 120 | ||
121 | do_compile_append_class-target() { | ||
122 | chrpath -d ${B}/binutils/elfedit | ||
123 | chrpath -d ${B}/binutils/readelf | ||
124 | } | ||
114 | do_install () { | 125 | do_install () { |
115 | autotools_do_install | 126 | autotools_do_install |
116 | 127 | ||