how to compile a program to make the global variable thread local using clang?

hello everyone,
i want to using parallel jit to run the function with global variables. but
the global variables seem to have the same address in the main memory.
recently, i see that the global variable can be thread local. and i think
this can make the global variables have different addresses.
did anyone use clang to complie a program and make the global variables
thread local?
how to do it?
thank you?