[oe-commits] [openembedded-core] 01/09: perf: Pass LDSHARED and CCLD via EXTRA_OEMAKE

git at git.openembedded.org git at git.openembedded.org
Sun Jan 26 17:55:57 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 787d1c91cde09426433bf57b68ed72bf47a8fa72
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Thu Jan 23 12:00:38 2020 -0800

    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
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/perf/perf.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 840f300..6d1b066 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -73,6 +73,8 @@ EXTRA_OEMAKE = '\
     CROSS_COMPILE=${TARGET_PREFIX} \
     ARCH=${ARCH} \
     CC="${CC}" \
+    CCLD="${CC}" \
+    LDSHARED="${CC} -shared" \
     AR="${AR}" \
     LD="${LD}" \
     EXTRA_CFLAGS="-ldw" \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list