Set THREADS_PREFER_PTHREAD_FLAG to YES

We have to link to -pthread instead -lpthread to get libatomic linked
on riscv64.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2020-04-04 15:43:23 +03:00
parent 5386a59033
commit dd54e11f2e
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ cmake -DPORT=Qt \
%ifarch s390 s390x ppc %{power64}
-DUSE_SYSTEM_MALLOC=ON \
%endif
%ifarch riscv64
-DTHREADS_PREFER_PTHREAD_FLAG:BOOL=YES \
%endif
%if 0%{?docs}
-DGENERATE_DOCUMENTATION=ON \
%endif