diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-04-23 11:57:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-04-23 14:13:51 +0200 |
commit | 634ce0cfe5effb3ebf0cf8fe73f2527d3f825b22 (patch) | |
tree | 31f9d82b658a7d697beca2dce842a27db0d250fe /svl | |
parent | 10c934147d469965dba6abc78efd02759a010b8e (diff) |
std::call_once needs -lpthread
...at least on Fedora 29:
> [LNK] Library/libsvllo.so
> ld.lld: error: undefined symbol: pthread_once
> >>> referenced by gthr-default.h:699 (/usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/x86_64-redhat-linux/bits/gthr-default.h:699)
> >>> /data/sbergman/lo-clang2/core/workdir/CxxObject/svl/source/crypto/cryptosign.o:(__gthread_once(int*, void (*)()))
and the call to std::call_once was introduced with
d43cc00cf97fa1151560aa6fe0a3fef38e7507f6 "crashtesting: tdf#122599
NSS_CMSMessage_CreateFromDER asserts".
Change-Id: If14b8cc704dbb806c61edabb8f5621527965ceb2
Reviewed-on: https://gerrit.libreoffice.org/71118
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/Library_svl.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/Library_svl.mk b/svl/Library_svl.mk index 7d268905b720..4dad7be2a929 100644 --- a/svl/Library_svl.mk +++ b/svl/Library_svl.mk @@ -111,6 +111,11 @@ $(eval $(call gb_Library_use_externals,svl,\ nss3 \ plc4 \ )) +ifeq ($(OS),LINUX) +$(eval $(call gb_Library_add_libs,svl, \ + -lpthread \ +)) +endif endif # BUILD_TYPE=DESKTOP endif |