Date: Sat, 31 Jan 2015 06:00:35 +0100 From: Jan Beich <jbeich@vfemail.net> To: Don Lewis <truckman@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: testing the value of ${CXX} in ports Makefile Message-ID: <fvar-v91o-wny@vfemail.net> References: <201501300345.t0U3jHwb008745@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Don Lewis <truckman@FreeBSD.org> writes: > PORTNAME= junk > PORTVERSION= 0.0.0 > CATEGORIES= devel > DISTFILES= > > MAINTAINER= truckman@FreeBSD.org > COMMENT= junk > > USE_GCC= 4.9+ > > .include <bsd.port.pre.mk> > > 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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fvar-v91o-wny>