Hello, I could not compile Koi on openSUSE Tumbleweed due to undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'. This means that pthread was missing as a link dependency. To fix it, I added to the CMAKE_CXX_FLAGS the -pthread flag (pthread, unlike other libraries, is not simply added as an external library, since there are differences between using -pthread and -lpthread). This small fix makes the build finish correctly.
Thanks, looks like some distros handle the build differently, as this flag doesn't change anything for me. But it also doesn't break my builds, so merging.
Hello, I could not compile Koi on openSUSE Tumbleweed due to
undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
. This means thatpthread
was missing as a link dependency. To fix it, I added to theCMAKE_CXX_FLAGS
the-pthread
flag (pthread, unlike other libraries, is not simply added as an external library, since there are differences between using -pthread and -lpthread). This small fix makes the build finish correctly.