Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2014 19:16:51 +0200 (CEST)
From:      Melvyn Sopacua <melvyn@magemana.nl>
To:        ports@FreeBSD.org
Cc:        sunpoet@FreeBSD.org, bapt@FreeBSD.org
Subject:   Clang with libc++ on 9.x and nghttp2
Message-ID:  <alpine.BSF.2.00.1404081909300.69915@fire.magemana.nl>

next in thread | raw e-mail | index | archive | help
Hi,

seeing r350552 I fixed something related locally as below. I don't think
the fix is 100% correct (cause I haven't the faintest clue how
compiler.mk actually sets compiler flags), but it does the job and gets
rid of lang/gcc.

I do think that the testing for _CXXINTERNAL in Uses/compiler.mk is
incorrect, at least if one truely wants to test for clang being capable
of c++11 features.


diff -r 14e2c13e58e1 -r e0ade5980519 Mk/Uses/compiler.mk
--- a/Mk/Uses/compiler.mk	Sat Apr 05 08:07:55 2014 +0200
+++ b/Mk/Uses/compiler.mk	Sat Apr 05 20:46:45 2014 +0200
@@ -101,7 +101,7 @@
  .endif

  .if ${_COMPILER_ARGS:Mfeatures}
-_CXXINTERNAL!=	${CXX} -\#\#\# /dev/null 2>&1
+_CXXINTERNAL!=	${CXX} -std=c++11 -stdlib=libc++ -\#\#\# /dev/null 2>&1
  .if ${_CXXINTERNAL:M\"-lc++\"}
  COMPILER_FEATURES=	libc++
  .else
diff -r 14e2c13e58e1 -r e0ade5980519 www/nghttp2/Makefile
--- a/www/nghttp2/Makefile	Sat Apr 05 08:07:55 2014 +0200
+++ b/www/nghttp2/Makefile	Sat Apr 05 20:46:45 2014 +0200
@@ -3,6 +3,7 @@

  PORTNAME=	nghttp2
  PORTVERSION=	0.3.2
+PORTREVISION=	1
  CATEGORIES=	www net
  MASTER_SITES=	https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
  		LOCAL/sunpoet
@@ -30,7 +31,7 @@
  USE_GNOME=	libxml2
  USE_LDCONFIG=	yes
  USE_OPENSSL=	yes
-USES=		compiler:c++11-lang pathfix pkgconfig tar:xz
+USES=		compiler:c++11-lib pathfix pkgconfig tar:xz

  PORTDOCS=	*

@@ -41,6 +42,8 @@

  .if ${OSVERSION} < 1000000 && !defined(WITH_OPENSSL_PORT)
  IGNORE=		nghttp2 requires OpenSSL 1.0.1+
+.elif ${OSVERSION} < 1000000
+CXXFLAGS+=	-stdlib=libc++
  .endif

  post-build:




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