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:
parent
1395d71065
commit
0cbe27892d
2
tbb.spec
2
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* .
|
||||
|
Loading…
Reference in New Issue
Block a user