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.
This commit is contained in:
Timm Bäder 2020-04-27 16:26:18 +02:00
parent 1395d71065
commit 0cbe27892d
1 changed files with 2 additions and 0 deletions

View File

@ -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* .