]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: Make knobs for compiler specific nn, ar, ranlib
authorKhem Raj <raj.khem@gmail.com>
Mon, 22 May 2017 05:00:36 +0000 (22:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2017 22:57:00 +0000 (23:57 +0100)
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>
meta/recipes-core/systemd/systemd_232.bb

index 65130544718d66a54261b21863dd5d9fd1ca022b..f843c58869a3416d2d30efe7c066716eaea82199 100644 (file)
@@ -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