[Mesa-dev] [PATCH] Define GLX_USE_TLS when the user asks for TLS.
Chia-I Wu
olvaffe at gmail.com
Mon Feb 21 21:11:52 PST 2011
On Mon, Feb 21, 2011 at 8:12 PM, Tom Fogal <tfogal at sci.utah.edu> wrote:
> From: Tom Fogal <tfogal at alumni.unh.edu>
>
> Without this, we do not actually respect the request for TLS.
What is your setup? The macro should be defined as part of $(CFLAGS).
It may not be a good practice as the variable is normally considered
a user variable, but mesa does not quite support that.
> ---
> src/mapi/glapi/Makefile | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/src/mapi/glapi/Makefile b/src/mapi/glapi/Makefile
> index bb4ed65..60b0963 100644
> --- a/src/mapi/glapi/Makefile
> +++ b/src/mapi/glapi/Makefile
> @@ -15,6 +15,10 @@ glapi_CPPFLAGS := \
> -I$(TOP)/src/mapi \
> -I$(TOP)/src/mesa
>
> +ifeq ($(GLX_TLS), yes)
> +glapi_CPPFLAGS += -DGLX_USE_TLS
> +endif # GLX_TLS
> +
> ifeq ($(SHARED_GLAPI),1)
> glapi_CPPFLAGS += \
> -DMAPI_MODE_BRIDGE \
> --
> 1.7.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
--
olv at LunarG.com
More information about the mesa-dev
mailing list