Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2016 23:53:22 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426639 - head/www/nghttp2
Message-ID:  <201611202353.uAKNrM7r037762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Nov 20 23:53:22 2016
New Revision: 426639
URL: https://svnweb.freebsd.org/changeset/ports/426639

Log:
  - Fix build for hosts without __cxa_thread_atexit

Modified:
  head/www/nghttp2/Makefile

Modified: head/www/nghttp2/Makefile
==============================================================================
--- head/www/nghttp2/Makefile	Sun Nov 20 23:29:38 2016	(r426638)
+++ head/www/nghttp2/Makefile	Sun Nov 20 23:53:22 2016	(r426639)
@@ -59,6 +59,13 @@ SPDY_LIB_DEPENDS=	libspdylay.so:www/spdy
 CPPFLAGS+=	-D_GLIBCXX_USE_C99
 .endif
 
+# Disable thread_local support for hosts without __cxa_thread_atexit()
+# See PR/192320 for details
+.if (${OSVERSION} < 1003506) || ((${OSVERSION} >= 1100000) && (${OSVERSION} < 1100122)) || (${OSVERSION} == 1100500)
+post-configure:
+	@${REINPLACE_CMD} -e '/HAVE_THREAD_LOCAL/d' ${WRKSRC}/config.h
+.endif
+
 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
 CONFIGURE_ARGS+=--with-jemalloc
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611202353.uAKNrM7r037762>