Don Lewis <truck...@freebsd.org> writes:

> PORTNAME=     junk
> PORTVERSION=  0.0.0
> CATEGORIES=   devel
> DISTFILES=
>
> MAINTAINER=   truck...@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!  
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to