On Wednesday 12 March 2008 9:38:50 am Michael FIG wrote: > Hi, > > ... I think the object/boot/configure patch in this one > is a better approach, as -pthread needs to be added to the GCC flags > for compiling as well as linking to do the right thing. Michael,
AFAIK, the "-pthread" is equivalent to "-D_REENTRANT=1 -lpthread". But it has spotty support across different systems, so an explicit definition is recommended for portable code. Try, gcc -x c -dM -E /dev/null >/tmp/x.x gcc -x c -dM -E -pthread /dev/null | diff /tmp/x.x - Subbu _______________________________________________ fonc mailing list [email protected] http://vpri.org/mailman/listinfo/fonc
