On Sun, 9 Nov 2003 18:41:57 -0500, Craig Rodrigues wrote > Hi, > > I am the maintainer of the FreeBSD port of apr. > > Here is a patch that updates the configury checks for > pthread flags in FreeBSD. > > In FreeBSD versions less than 5.0.16, you need the > following flags for pthreads stuff > CFLAGS=-D_REENTRANT -D_THREAD_SAFE > LIBS=-pthread > > In FreeBSD versions greater than or equal to 5.0.16, you need the > following flags for pthreads stuff > CFLAGS= > LIBS=-lc_r
It doesn't seem correct to always link to libc_r when FreeBSD 5.X has libc_r, libkse (M:N mode), libkse (1:1 mode), and libthr. It would be nice if the person doing the build was able to select this with a configure option, instead of it being hard codeed in there.(And for the FreeBSD ports, I thought there was a system to select which threading library to use for the entire ports?) Regardless the -pthread does need to be removed, since it has been removed from FreeBSD gcc already, but I am not sure hard coding in libc_r is the best route to take. -chip
