From owner-freebsd-ports@FreeBSD.ORG Tue Apr 8 17:17:02 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 480258BA; Tue, 8 Apr 2014 17:17:02 +0000 (UTC) Received: from fire.magemana.nl (magemana.nl [IPv6:2a01:7c8:aaae:25e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0DAEF1997; Tue, 8 Apr 2014 17:17:02 +0000 (UTC) Received: by fire.magemana.nl (Postfix, from userid 1003) id E5FC04AB9A5; Tue, 8 Apr 2014 19:16:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by fire.magemana.nl (Postfix) with ESMTP id DB4024AB9A4; Tue, 8 Apr 2014 19:16:51 +0200 (CEST) Date: Tue, 8 Apr 2014 19:16:51 +0200 (CEST) From: Melvyn Sopacua To: ports@FreeBSD.org Subject: Clang with libc++ on 9.x and nghttp2 Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: sunpoet@FreeBSD.org, bapt@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 17:17:02 -0000 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: