The TLS emulation layer provided by GCC on Cygwin has a deadlock issue
with the 'test_perthreadlock'. Use our internal TLS implementation on
Cygwin to work around this.
Change-Id: Id9e8c6623715e529ba01fcb128d75e922766098f
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
LIBDIR="lib"
LIBDIR_ARCH="$LIBDIR"
+CONF_OPTS=()
+
# RHEL and SLES both use lib64 but don't bother shipping a default autoconf
# site config that matches this.
if [[ ( -f /etc/redhat-release || -f /etc/products.d/SLES.prod || -f /etc/yocto-release ) ]]; then
export PYTHON_CONFIG="python3-config"
;;
+cygwin*)
+ export MAKE=make
+ export TAR=tar
+ export NPROC=nproc
+
+ # Work around a bug in GCC's emutls on cygwin which results in a deadlock
+ # in test_perthreadlock
+ CONF_OPTS+=("--disable-compiler-tls")
+ ;;
+
*)
export MAKE=make
export TAR=tar
# Set configure options and environment variables for each build
# configuration.
-CONF_OPTS=("--prefix=$PREFIX" "--libdir=$PREFIX/$LIBDIR_ARCH" "--disable-maintainer-mode")
+CONF_OPTS+=("--prefix=$PREFIX" "--libdir=$PREFIX/$LIBDIR_ARCH" "--disable-maintainer-mode")
case "$conf" in
static)
print_header "Conf: Static lib only"