diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-05-21 22:00:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-25 23:59:32 +0100 |
commit | 9777af544ca8518a84a417f6fa1ff3f7519d45ac (patch) | |
tree | aa7739da216d3ee67dd48e53852e4b8883f841b3 /meta/recipes-core | |
parent | b2b7ad41821694a5c1cc13872104efb58c9159ae (diff) | |
download | poky-9777af544ca8518a84a417f6fa1ff3f7519d45ac.tar.gz |
systemd: Make knobs for compiler specific nn, ar, ranlib
These are used with LTO enabled so it has to be
compiler specific, making it weak default, makes
clang to override them when enabled.
(From OE-Core rev: 23cfb8416fb13a32e42ec3860c419ee419e55734)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/systemd/systemd_232.bb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/systemd/systemd_232.bb index 6513054471..f843c58869 100644 --- a/meta/recipes-core/systemd/systemd_232.bb +++ b/meta/recipes-core/systemd/systemd_232.bb | |||
@@ -161,10 +161,14 @@ CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', '' | |||
161 | # disable problematic GCC 5.2 optimizations [YOCTO #8291] | 161 | # disable problematic GCC 5.2 optimizations [YOCTO #8291] |
162 | FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2" | 162 | FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2" |
163 | 163 | ||
164 | COMPILER_NM ?= "${HOST_PREFIX}gcc-nm" | ||
165 | COMPILER_AR ?= "${HOST_PREFIX}gcc-ar" | ||
166 | COMPILER_RANLIB ?= "${HOST_PREFIX}gcc-ranlib" | ||
167 | |||
164 | do_configure_prepend() { | 168 | do_configure_prepend() { |
165 | export NM="${HOST_PREFIX}gcc-nm" | 169 | export NM="${COMPILER_NM}" |
166 | export AR="${HOST_PREFIX}gcc-ar" | 170 | export AR="${COMPILER_AR}" |
167 | export RANLIB="${HOST_PREFIX}gcc-ranlib" | 171 | export RANLIB="${COMPILER_RANLIB}" |
168 | export KMOD="${base_bindir}/kmod" | 172 | export KMOD="${base_bindir}/kmod" |
169 | if [ -d ${S}/units.pre_sed ] ; then | 173 | if [ -d ${S}/units.pre_sed ] ; then |
170 | cp -r ${S}/units.pre_sed ${S}/units | 174 | cp -r ${S}/units.pre_sed ${S}/units |