[Libreoffice-commits] core.git: svl/Library_svl.mk

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 23 12:14:42 UTC 2019


 svl/Library_svl.mk |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 634ce0cfe5effb3ebf0cf8fe73f2527d3f825b22
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Apr 23 11:57:50 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Apr 23 14:13:51 2019 +0200

    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 at redhat.com>

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
 


More information about the Libreoffice-commits mailing list