On Mon, 7 May 2007, Ian Lance Taylor wrote: > "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx> writes: > > > is there a gcc invocation i can run to see if that build has TLS > > support? thanks. > > echo '__thread int i;' > foo.c > gcc -c foo.c >/dev/null 2>&1 > if test $? != 0; then > echo no TLS support in gcc > fi > > If you are looking for something else, can you clarify what you are > looking for? as a followup, it looks as if my crosstool-generated x86_64 toolchain does indeed have TLS support, despite the plethora of: #error "TLS support is required." messages being printed during the build of glibc headers. i can only assume that TLS support isn't available at that early stage, but becomes available later on when it matters, and that i might want to tweak my build options to not refer to TLS early on. this is all just guessing, i haven't looked closely enough to verify this. thanks. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ========================================================================