From: Scott C. <can...@os...> - 2007-08-24 04:33:18
|
I inadvertently lost a patch I made a long time back to the acx_thread macro that corrects a bug on Solaris. I thought it had been long since fixed by the macro's author, but apparently not. The cvs diff is below. Without the fix, a CC build on Solaris isn't thread-safe due to a missing -mt flag. I also can't get the cvs trunk to build on Solaris 10 x86 and will provide the diffs for that once I fix the bugs. -- Scott cvs diff: Diffing m4 Index: m4/ACX_PTHREAD.m4 =================================================================== RCS file: /cvsroot/log4cpp/log4cpp/m4/ACX_PTHREAD.m4,v retrieving revision 1.1 diff -r1.1 ACX_PTHREAD.m4 245,246c245,253 < *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; < *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; --- > *-aix* | *-freebsd* | *-darwin-*) flag="-D_THREAD_SAFE";; > *-osf* | *-hpux*) flag="-D_REENTRANT";; > *solaris*) > if test "$GCC" = "yes"; then > flag="-D_REENTRANT" > else > flag="-mt -D_REENTRANT" > fi > ;; |