Date: Mon, 27 Dec 2004 15:23:04 +0900 From: FUJISHIMA Satsuki <sf@FreeBSD.org> To: x11@FreeBSD.org Subject: pthread definitions in FreeBSD.cf of Xorg-6.8.1 Message-ID: <868y7kb6pj.wl%sf@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Does anyone know why imake-6 is built with -lpthread explicitly? There seems to be a replacement hack at pre-configure but patch-FreeBSD.cf does not provide %% keys to replace. I have two negative reason for embedded -lpthread: (1) does not build on FreeBSD 4. (2) unable to switch thread library via libmap.conf (this is the reason why we switched back to -pthread.) but not positive one. Index: files/patch-FreeBSD.cf =================================================================== RCS file: /home/pcvs/ports/devel/imake-6/files/patch-FreeBSD.cf,v retrieving revision 1.2 diff -u -r1.2 patch-FreeBSD.cf --- files/patch-FreeBSD.cf 23 Dec 2004 01:35:39 -0000 1.2 +++ files/patch-FreeBSD.cf 27 Dec 2004 03:01:27 -0000 @@ -1,5 +1,5 @@ ---- cf/FreeBSD.cf.orig Sat Aug 14 17:03:36 2004 -+++ cf/FreeBSD.cf Fri Sep 10 19:52:31 2004 +--- cf/FreeBSD.cf.orig Sun Aug 15 09:03:36 2004 ++++ cf/FreeBSD.cf Mon Dec 27 12:01:03 2004 @@ -78,6 +78,7 @@ #define HasIssetugid YES #define HasPoll YES @@ -20,8 +20,8 @@ -# define ThreadsLibraries -pthread -# endif -# define SystemMTDefines -D_THREAD_SAFE -+# define ThreadsLibraries -lpthread -+# define SystemMTDefines ++# define ThreadsLibraries %%PTHREAD_LIBS%% ++# define SystemMTDefines %%PTHREAD_CFLAGS%% #endif /* This fixes linking C programs against libGLU on FreeBSD 3.x */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868y7kb6pj.wl%sf>