Date: Sat, 5 Oct 2013 14:44:27 +0200 From: Andras Horvath <mail@log69.com> To: freebsd-ports@freebsd.org Subject: ports / Makefile / check if default compiler is GCC and version is 4.2+ Message-ID: <20131005144427.5e3aeb92@notebook.dell>
next in thread | raw e-mail | index | archive | help
Dear Members, I'd like to ask your help. I'm a developer and maintainer of a port and I intend to give different compile options for different compilers when building my software. I'm using the OpenMP feature of GCC that is available from GCC version 4.2 and above. I would like to know how I could determine in my Makefile whether the default compiler is GCC and it's version is >= 4.2 ? I'd like to go with the preffered standard way. Does it make any sense to try to support GCC version lower than 4.2? If not, I reckon it would be enough for me to check against GCC only without its version. If so, then would this be enough? : .if ${CC} == "gcc" Thanks, Andras
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131005144427.5e3aeb92>