From: Vladimir T. <vtz...@gm...> - 2009-10-07 17:08:49
|
On 10/7/09, Don Cohen <don...@is...> wrote: > $ ./configure --with-threads=POSIX_THREADS --with-module=rawsock > --with-dynamic-modules=yes build-mt-yes-tls0 > and then change build-mt-yes-tls0/Makefile: > CFLAGS = -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit > -Wreturn-type-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral > -O2 -fexpensive-optimizations -falign-functions=4 -pthread -DENABLE_UNICODE > -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. > -DUSE_CUSTOM_TLS=1 > > then make, which does complete successfully. > > > During the build you will get warnings: "USE_CUSTOM_TLS overrides the > > compiler per_thread support." and the resulting executable will be > > quite slower. > > > If segfault goes away with this built - it means something is wrong > > with __thread variables. > But how is this related to dynamic modules? I do not know. It's either gcc bug or something I am not aware of. Will try to find out (-DUSE_CUSTOM_TLS=1 is really slow). |