tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GCC g++ 4.4.7 does not accept -std=c++03



* On 2019-06-28 at 16:41 BST, Ryo ONODERA wrote:

> +.for _version_ in ${_CXX_STD_VERSIONS}
> +_CXX_STD_FLAG.${_version_}?=	-std=${_version_}
> +.  if !empty(_GCC_VERSION:M[34].[1234].*)
> +_CXX_STD_FLAG.c++03?=	-std=c++0x
> +_CXX_STD_FLAG.gnu++03?=	-std=gnu++0x
> +.  endif
> +.endfor

This won't work, the latter ?= will never be set as you already set
the variable.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index