From 634ce0cfe5effb3ebf0cf8fe73f2527d3f825b22 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 23 Apr 2019 11:57:50 +0200 Subject: 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 --- svl/Library_svl.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'svl/Library_svl.mk') 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 -- cgit