diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-01-26 11:27:41 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-27 16:48:09 +0000 |
commit | b7e6a763f687bce03d20ec34696341b7bb5347ab (patch) | |
tree | e13ffc77fcaa77e9372d69618d77196c488cedfa /meta/recipes-kernel/perf/perf.bb | |
parent | 614f764707e53acb346a6ab017871f689f114d09 (diff) | |
download | poky-b7e6a763f687bce03d20ec34696341b7bb5347ab.tar.gz |
perf: Pass LDSHARED and CCLD via EXTRA_OEMAKE
python code underneath is smart and pokes at python installation in
sysroot for compile environment, the overrides from EXTRA_OEMAKE are
ofcourse preferred but it falls back to python3's distutils/sysconfig
for rest of them, and it does use CCLD and LDSHARED for linking, when we
use clang to compile python3 then it encodes these variables to be clang
however, when building perf we inherit kernel which forces gcc to be
used for compiling perf, which then mixes both compilers due to CCLD and
LDSHARED demands. Therefore override CCLD and LDSHARED in make
environment helps python/distutils to use right linker
(From OE-Core rev: f9259da409c2aa92deb71aef0da2405c8d836615)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 840f3008b5..6d1b06693d 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -73,6 +73,8 @@ EXTRA_OEMAKE = '\ | |||
73 | CROSS_COMPILE=${TARGET_PREFIX} \ | 73 | CROSS_COMPILE=${TARGET_PREFIX} \ |
74 | ARCH=${ARCH} \ | 74 | ARCH=${ARCH} \ |
75 | CC="${CC}" \ | 75 | CC="${CC}" \ |
76 | CCLD="${CC}" \ | ||
77 | LDSHARED="${CC} -shared" \ | ||
76 | AR="${AR}" \ | 78 | AR="${AR}" \ |
77 | LD="${LD}" \ | 79 | LD="${LD}" \ |
78 | EXTRA_CFLAGS="-ldw" \ | 80 | EXTRA_CFLAGS="-ldw" \ |