jvirkki / dupd

CLI utility to find duplicate files
http://www.virkki.com/dupd
GNU General Public License v3.0
112 stars 16 forks source link

Tell ld to link against libpthreads #4

Closed jbruchon closed 8 years ago

jbruchon commented 8 years ago

Without -lpthread passed to ld, the link phase fails.

jvirkki commented 8 years ago

I'm curious to know which OS/distribution you're building on that this failed? Did you need any other changes to support that platform? I test on Linux(debian), OS X and OpenSolaris.

jbruchon commented 8 years ago

I tested on Linux, but not Debian. Without -lpthread GCC throws an error at link time because the object files were compiled with pthreads references but the final binary wasn't being linked against libpthreads. I'm not sure why it would have worked without -lpthreads.