testing the value of ${CXX} in ports Makefile
Jan Beich
jbeich at vfemail.net
Sat Jan 31 05:01:11 UTC 2015
Don Lewis <truckman at FreeBSD.org> writes:
> PORTNAME= junk
> PORTVERSION= 0.0.0
> CATEGORIES= devel
> DISTFILES=
>
> MAINTAINER= truckman at 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!
More information about the freebsd-ports
mailing list