baduhai / Koi

Koi - Theme scheduling for the KDE Plasma Desktop
GNU Lesser General Public License v3.0
270 stars 20 forks source link

Add -pthread flag #55

Closed fpesari closed 2 years ago

fpesari commented 2 years ago

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.

baduhai commented 2 years ago

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.