Date: Sat, 31 Jan 2015 18:04:52 +1030 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Jan Beich <jbeich@vfemail.net>, Don Lewis <truckman@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: testing the value of ${CXX} in ports Makefile Message-ID: <54CC859C.3010802@ShaneWare.Biz> In-Reply-To: <fvar-v91o-wny@vfemail.net> References: <201501300345.t0U3jHwb008745@gw.catspoiler.org> <fvar-v91o-wny@vfemail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 31/01/2015 15:30, Jan Beich wrote: > 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. That is a good point, it appears we currently only get the chosen compiler type and not it's version or features. So COMPILER_FEATURES and COMPILER_VERSION should be set against CHOSEN_COMPILER_TYPE as that is the one to be used to build the current port, which would be the one we want to know about when making build decisions. Or at least there should be CHOSEN_COMPILER_FEATURES and CHOSEN_COMPILER_VERSION I have chosen to submit this as a bug report - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197219 -- FreeBSD - the place to B...Software Developing Shane Ambler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54CC859C.3010802>