-pthread like -openmp should always be the right option to use. gcc/g++ and other are compiler drivers (the real compilers are cc1/cc1++) and those switches tells the driver to set everything right for compiling and linking with these features.
That’s the theory at least. Do you have an example where -pthread at linking time doesn’t do its job? The -lpthread could be just someone not understanding the feature, after all, there is a libpthread. François > On 20/04/2018, at 23:48, Dima Pasechnik <dimp...@gmail.com> wrote: > > I wonder how we deal with this issue in packages that have hand-written > Makefiles; > The issue is that some versions of gcc/g++ (if used as a linker) need > -pthread option to be specified, apart from linking > with -lpthread. > > In particular this has to be dealt on https://trac.sagemath.org/ticket/23353 > > Thanks, > Dima > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.