Re: how to tell if gcc supports tls?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"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?

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux