From owner-freebsd-ports@FreeBSD.ORG Sat Jan 31 05:01:11 2015 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2911BC1B for ; Sat, 31 Jan 2015 05:01:11 +0000 (UTC) Received: from vfemail.net (nine.vfemail.net [108.76.175.9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7463B83 for ; Sat, 31 Jan 2015 05:01:10 +0000 (UTC) Received: (qmail 6520 invoked by uid 89); 31 Jan 2015 05:00:58 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 31 Jan 2015 05:00:58 -0000 Received: (qmail 5985 invoked by uid 89); 31 Jan 2015 05:00:41 -0000 Received: by simscan 1.3.1 ppid: 5981, pid: 5983, t: 0.1004s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 31 Jan 2015 05:00:41 -0000 Received: (qmail 17429 invoked by uid 89); 31 Jan 2015 05:00:41 -0000 Received: by simscan 1.4.0 ppid: 17410, pid: 17419, t: 0.7598s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by 172.16.100.62 with ESMTPA; 31 Jan 2015 05:00:40 -0000 From: Jan Beich To: Don Lewis Subject: Re: testing the value of ${CXX} in ports Makefile References: <201501300345.t0U3jHwb008745@gw.catspoiler.org> Date: Sat, 31 Jan 2015 06:00:35 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2015 05:01:11 -0000 Don Lewis writes: > PORTNAME= junk > PORTVERSION= 0.0.0 > CATEGORIES= devel > DISTFILES= > > MAINTAINER= truckman@FreeBSD.org > COMMENT= junk > > USE_GCC= 4.9+ > > .include > > post-patch: > echo CXX=${CXX} > .if ${CXX} == g++49 This idiom may lead to crashes. According to the wiki[1] mixing libstdc++ and libc++ is only supported when both are linked against libcxxrt. lang/gcc by default use libsupc++, so you'd have to add USES= compiler:gcc-c++11-lib to force the port use devel/libc++. Also, the following wouldn't work .if ${CHOSEN_COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} == 49 because COMPILER_VERSION or COMPILER_FEATURES are evaluated against COMPILER_TYPE, not CHOSEN_COMPILER_TYPE. [1] https://wiki.freebsd.org/NewC++Stack#Mixing_Libraries_using_Libc.2B-.2B-_and_Libstdc.2B-.2B- ------------------------------------------------- VFEmail.net - http://www.vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!