From 0cbe27892d19112630301d0ac51741628e29e01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 27 Apr 2020 16:26:18 +0200 Subject: [PATCH] spec: Pass compiler to make tbb's build system already can handle different compiles such as gcc, clang and icc. However, to pick the correct build definitions, it needs to be told what compiler to use. Setting CC to that value does not suffice and the 'compiler' variable needs to be passed to make. --- tbb.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tbb.spec b/tbb.spec index 1fa25cd..4c57ad8 100644 --- a/tbb.spec +++ b/tbb.spec @@ -96,6 +96,7 @@ sed -i '/^#!/d' python/tbb/{pool,test}.py %build make %{?_smp_mflags} tbb_build_prefix=obj stdver=c++14 \ + compiler=%{__cc} \ CXXFLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \ LDFLAGS="$RPM_LD_FLAGS -lpthread" for file in %{SOURCE6} %{SOURCE7} %{SOURCE8}; do @@ -108,6 +109,7 @@ done . build/obj_release/tbbvars.sh pushd python make %{?_smp_mflags} -C rml stdver=c++14 \ + compiler=%{__cc} \ CPLUS_FLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \ LDFLAGS="$RPM_LD_FLAGS -lpthread" cp -p rml/libirml.so* .