diff options
| -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 |
