[Mesa-dev] [PATCH v2 1/2] configure.ac: Enable GLX_USE_TLS if possible.

Zhigang Gong zhigang.gong at linux.intel.com
Mon Feb 13 02:10:36 PST 2012


On Sun, Feb 12, 2012 at 09:02:44AM -0500, nobled wrote:
> Judging by the patch that tried to change the tls_model:
> https://bugs.freedesktop.org/show_bug.cgi?id=35268
> It looks like we'd need to disable enable_asm if the tls_model
> attribute isn't supported, since it would probably end up defaulting
> to general-dynamic for PIC code IIRC, and the assembly depends on it
> being initial-exec. Clang still doesn't support the tls_model
> attribute, and it doesn't fail compilation: it just gives a
> -Wattributes warning, so we might need to add '-Werror -Wattributes'
> (to catch the versions before -Wattributes was added, which give an
> 'unknown warning option' warning) to the test-compilation CFLAGS...
> 
> Plus, the test would have to be moved to before enable_asm is decided
> and adds the -DUSE_X86_ASM, etc defines.
> 

Thanks for the comments, I refined the patch according to you and
Dan's suggestion. Here is the new version. As to the version check
of CLANG, I haven't handled it as I don't have the environment at
hand. Could you help to add it?



More information about the mesa-dev mailing list