[2003-01-23] William E. Kempf wrote:

>> I think I may be the one who broke a lot of the OpenBSD regression tests
>> by defining BOOST_HAS_PTHREADS in the OpenBSD platform configuration.
>> IMO this is correct (OpenBSD supports pthreads right?),

Yes it does... with the -pthread flag.

>> but it causes a
>> problem: currently the gcc config unconditionally defines
>> BOOST_HAS_THREADS, basically because we didn't know what else to do (gcc
>> on *BSD doesn't define anything when you build with -pthread - basically
>> defining -pthread affects only the linker, so we can't detect when to
>> turn on threading support). 

Don't know about other *BSD-s but GCC on OpenBSD GCC defines
_POSIX_THREADS=1 when the -pthread is used. Here are the details...

red5of5:grafik {108} gcc -E -dM empty.c
#define __i386__ 1 
#define __GNUC_MINOR__ 95 
#define __unix__ 1 
#define __OpenBSD__ 1 
#define __GNUC__ 2 
red5of5:grafik {109} gcc -E -dM -pthread empty.c
#define __i386__ 1 
#define __GNUC_MINOR__ 95 
#define _POSIX_THREADS 1 
#define __unix__ 1 
#define __OpenBSD__ 1 
#define __GNUC__ 2 
red5of5:grafik {110} /usr/local/gcc-3.2/bin/gcc -E -dM empty.c
#define __HAVE_BUILTIN_SETJMP__ 1
#define __OpenBSD__ 1
#define __unix__ 1
#define __i386__ 1
#define __SIZE_TYPE__ unsigned int
#define __GNUC_PATCHLEVEL__ 0
#define __USER_LABEL_PREFIX__ _
#define __STDC_HOSTED__ 1
#define __WCHAR_TYPE__ int
#define __WINT_TYPE__ unsigned int
#define __GNUC__ 3
#define __USING_SJLJ_EXCEPTIONS__ 1
#define __GXX_ABI_VERSION 102
#define i386 1
#define __GNUC_MINOR__ 2
#define __STDC__ 1
#define __PTRDIFF_TYPE__ int
#define __tune_i386__ 1
#define __REGISTER_PREFIX__ 
#define __NO_INLINE__ 1
#define __i386 1
#define __VERSION__ "3.2"
red5of5:grafik {111} /usr/local/gcc-3.2/bin/gcc -E -dM -pthread empty.c
#define __HAVE_BUILTIN_SETJMP__ 1
#define __OpenBSD__ 1
#define __unix__ 1
#define __i386__ 1
#define __SIZE_TYPE__ unsigned int
#define _POSIX_THREADS 1
#define __GNUC_PATCHLEVEL__ 0
#define __USER_LABEL_PREFIX__ _
#define __STDC_HOSTED__ 1
#define __WCHAR_TYPE__ int
#define __WINT_TYPE__ unsigned int
#define __GNUC__ 3
#define __USING_SJLJ_EXCEPTIONS__ 1
#define __GXX_ABI_VERSION 102
#define i386 1
#define __GNUC_MINOR__ 2
#define __STDC__ 1
#define __PTRDIFF_TYPE__ int
#define __tune_i386__ 1
#define __REGISTER_PREFIX__ 
#define __NO_INLINE__ 1
#define __i386 1
#define __VERSION__ "3.2"


-- grafik - Don't Assume Anything
-- [EMAIL PROTECTED] - [EMAIL PROTECTED]
-- 102708583@icq
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to