From: Dmitri Botcharnikov Date: Tue, 29 Aug 2017 15:05:44 +0000 (+0300) Subject: Fix build for arm X-Git-Tag: submit/tizen/20180619.075036~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71059686ec8ca69b8f8a9c4822bc160b2cb2efc4;p=sdk%2Ftools%2Fcoreprofiler.git Fix build for arm --- diff --git a/packaging/coreprofiler.spec b/packaging/coreprofiler.spec index 18f2bc1..d480cf4 100644 --- a/packaging/coreprofiler.spec +++ b/packaging/coreprofiler.spec @@ -53,6 +53,13 @@ cd coreprofiler cp %{SOURCE1001} .. %build +%ifarch armv7l +%define _overridefile clang-compiler-override-arm.txt +export CFLAGS=" --target=%{_host} -Wno-deprecated-declarations" +export CXXFLAGS=" --target=%{_host} -Wno-deprecated-declarations" +export ASMFLAGS=" --target=%{_host}" +%else +%define _overridefile clang-compiler-override.txt export GCC_INSTALL_DIR=$(gcc -print-search-dirs | sed -ne '/install: /s/install: //p') export LLVM_LIBDIR=$(llvm-config --libdir) export LLVM_INCLUDEDIR=$(llvm-config --includedir) @@ -72,10 +79,6 @@ export CXXFLAGS=" -B${LLVM_LIBDIR} -B${GCC_INSTALL_DIR} -Wno-deprecated-declarat export CPLUS_INCLUDE_PATH="${LLVM_INCLUDEDIR}/llvm/:${LLVM_INCLUDEDIR}/llvm-c/:${CLANG_HEADERS}:${GPP_INCLUDE_PATHS}:${CLANG_INCLUDE_PATHS}" export C_INCLUDE_PATH="${LLVM_INCLUDEDIR}/llvm-c/:%{_includedir}" -%ifarch armv7l -%define _overridefile clang-compiler-override-arm.txt -%else -%define _overridefile clang-compiler-override.txt %endif mkdir build