Closed nicki-krizek closed 3 years ago
Thanks @tomaskrizek, we'll look into it. What platform/distro are you on?
I'm using Archlinux on x86_64 with cmake 3.20.0.
I encountered this issue even without building for DoH. Because std::thread
is referenced in main.cpp
it's a requirement for all builds (unless it's #ifdef
'd out).
Regardless, telling CMake to search for a threads library does the trick on my Ubuntu 18.04 machine. If you want to test on other distros, here's the diff: https://github.com/DNS-OARC/flamethrower/compare/master...jroyalty:build-with-threading-lib
@tomaskrizek I have merged the changes from @jroyalty , can you try again?
It seems to work now, thanks!
When I try to compile flamethrower with DoH support:
I get an error:
My workaround is to use
export LDFLAGS='-pthread'
but it seems like a cmake configuration issue.