pthread definitions in FreeBSD.cf of Xorg-6.8.1

FUJISHIMA Satsuki sf at FreeBSD.org
Sun Dec 26 22:23:10 PST 2004


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 */


More information about the freebsd-x11 mailing list