In the last episode (Sep 09), Kevin Oberman said: > > From: Doug Barton <DougB_at_FreeBSD.org> The right thing to do is to > > file a PR when this stuff breaks. This process will actually be a > > good thing, since ports should not have been compiling on -current > > with -pthread for a long time now. > > > > BTW, several ports have already been fixed, and the fix is not > > difficult. I do the following in my ports: > > > > _at_ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched > > _at_ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \ > > -e 's#malloc.h#stdlib.h#g' \ > > ${WRKSRC}/configure.Patched > ${WRKSRC}/configure > > > > Any occurences of -lc_r should be changed to ${PTHREAD_LIBS} too. > > For which versions of FreeBSD? I just tried using ${PTHREAD_LIBS}, > but the loader could not find any of the pthread routines. I assume > it should be defined in one of the .mk files, but it does not seem to > be on either a current (yesterday) or an older current (9/19). bsd.port.mk has used -lc_r for pthreads on 5.0 since March 2001 (rev 1.363). http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.362&r2=1.363&f=h -- Dan Nelson dnelson_at_allantgroup.comReceived on Tue Sep 09 2003 - 11:17:25 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC