From: <don...@is...> - 2009-10-07 17:01:57
|
Vladimir Tzankov writes: > Can you configure and built with -DUSE_CUSTOM_TLS=0 added to CFLAGS? I can't seem to add that to the configure line, so I configure as before $ ./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? > oops - sorry. -DUSE_CUSTOM_TLS=1 not 0 |