Skip to content
Commit 8c3648a4 authored by Milian Wolff's avatar Milian Wolff
Browse files

Fix linking with ld.lld

ld.lld apparently requires an explicit link to pthread for the
usage of std::call_once, otherwise it fails with:

ld: error: undefined symbol: pthread_once
>>> referenced by gthr-default.h:699 (/usr/include/c++/8.2.1/x86_64-pc-linux-gnu/bits/gthr-default.h:699)
>>>               CMakeFiles/kdevphplanguagesupport.dir/phpparsejob.cpp.o:(__gthread_once(int*, void (*)()))
collect2: error: ld returned 1 exit status
parent 49abff40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment