qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] env in TLS


From: Johannes Schindelin
Subject: Re: [Qemu-devel] env in TLS
Date: Mon, 11 Oct 2004 16:59:05 +0200 (CEST)

Hi,

On Mon, 11 Oct 2004, Lennert Buytenhek wrote:

> Sure, but if you want to support all platforms, you still won't be
> able to use __thread unconditionally which was the original intent as
> I understood it.

What I meant:

in configure:

-- snip --
# check tls variable support
cat > $TMPC <<EOF
int __thread dummy;
EOF

can_use_tls="no"
if $cc -c -o $TMPO $TMPC 2> /dev/null ; then
   can_use_tls="yes"
fi

[...]

if test "$can_use_tls" = "no" ; then
  echo "NO_TLS=yes" >> $config_mak
fi

-- snap --

in Makefile:

-- snip --
ifeq ($(NO_TLS),yes)
CFLAGS+= -D__thread=
endif
-- snap --

Ciao,
Dscho





reply via email to

[Prev in Thread] Current Thread [Next in Thread]