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:57:00 +0100 |
commit | 23cfb8416fb13a32e42ec3860c419ee419e55734 (patch) | |
tree | 9c91b0cad33e42bc5080287b0e5972ec3cc08231 | |
parent | 553d36ebbee364435e8c985961a7f829528658a4 (diff) | |
download | openembedded-core-23cfb8416fb13a32e42ec3860c419ee419e55734.tar.gz openembedded-core-23cfb8416fb13a32e42ec3860c419ee419e55734.tar.bz2 openembedded-core-23cfb8416fb13a32e42ec3860c419ee419e55734.zip |
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.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-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', '' # disable problematic GCC 5.2 optimizations [YOCTO #8291] FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2" +COMPILER_NM ?= "${HOST_PREFIX}gcc-nm" +COMPILER_AR ?= "${HOST_PREFIX}gcc-ar" +COMPILER_RANLIB ?= "${HOST_PREFIX}gcc-ranlib" + do_configure_prepend() { - export NM="${HOST_PREFIX}gcc-nm" - export AR="${HOST_PREFIX}gcc-ar" - export RANLIB="${HOST_PREFIX}gcc-ranlib" + export NM="${COMPILER_NM}" + export AR="${COMPILER_AR}" + export RANLIB="${COMPILER_RANLIB}" export KMOD="${base_bindir}/kmod" if [ -d ${S}/units.pre_sed ] ; then cp -r ${S}/units.pre_sed ${S}/units |