]> code.ossystems Code Review - openembedded-core.git/commitdiff
llvm: remove -mlongcall from CXXFLAGS for powerpc
authorChangqing Li <changqing.li@windriver.com>
Tue, 8 Oct 2019 05:14:21 +0000 (13:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Oct 2019 19:52:32 +0000 (20:52 +0100)
after gcc upgrade to 9.1.0, with this flags will make below error:
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]

remove it as workaround, after remove it, powerpc can compile successfully

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/llvm/llvm_git.bb

index 08b19a33e35b706e61a96b78854465fc337b3221..9b113f692f03988d2788f7887ab9d05c47ee58da 100644 (file)
@@ -86,8 +86,6 @@ EXTRA_OECMAKE_append_class-nativesdk = "\
                   -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \
                  "
 
-CXXFLAGS_append_class-target_powerpc = " -mlongcall"
-
 do_configure_prepend() {
 # Fix paths in llvm-config
        sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp