From owner-freebsd-x11@FreeBSD.ORG Mon Dec 27 06:23:10 2004 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 686B916A4CE for ; Mon, 27 Dec 2004 06:23:10 +0000 (GMT) Received: from mvs1.plala.or.jp (c158129.vh.plala.or.jp [210.150.158.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7484E43D49 for ; Mon, 27 Dec 2004 06:23:09 +0000 (GMT) (envelope-from sf@FreeBSD.org) Received: from i220-220-25-196.s02.a026.ap.plala.or.jp ([220.220.25.196]) by mvs1.plala.or.jp with ESMTP <20041227062308.DZRW5435.mvs1.plala.or.jp@i220-220-25-196.s02.a026.ap.plala.or.jp> for ; Mon, 27 Dec 2004 15:23:08 +0900 Date: Mon, 27 Dec 2004 15:23:04 +0900 Message-ID: <868y7kb6pj.wl%sf@FreeBSD.org> From: FUJISHIMA Satsuki To: x11@FreeBSD.org User-Agent: Wanderlust/2.11.32 (Wonderwall) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.1 (AOI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: pthread definitions in FreeBSD.cf of Xorg-6.8.1 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2004 06:23:10 -0000 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 */