[Date Prev][Date Next] [Chronological] [Thread] [Top]

configure script adds -lc_r on FreeBSD instead of using -pthread (ITS#466)

Full_Name: John Birrell
Version: Built from latest cvsup
Submission from: (NULL) (

On FreeBSD, gcc will link against the libc_r (the threaded version of libc)
*instead* of libc iff you use the -pthread argument when linking.
If you use -lc_r instead, gcc will link the program against *both*
libc and libc_r. This will end in tears (core dump).

I'm not a fan of GNU configure so I have no (good) idea about how
to get the configure script to do the right thing.