Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 10:05:41 +1030
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        lev@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: How to determine type of system compiler in port?
Message-ID:  <52DF044D.3030903@ShaneWare.Biz>
In-Reply-To: <1603752718.20140122024525@serebryakov.spb.ru>
References:  <1603752718.20140122024525@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22/01/2014 09:15, Lev Serebryakov wrote:
> Hello, Ports.
> 
>   I want to turn off some clang-specific warnings via CFLAGS, as I'm not
> able to patch all places when "dirty" (but valid!) code is used and upstream
> software uses "-Werror"...
> 
>   I could not find any mentions of "clang" in bsd.port.mk and COMPILER_TYPE
>  is not defined for ports.
> 
>    Yes, I understand, that it is better to report these errors
>  upstream, and, in fact, these warnings were fixed in latest version but I
>  need to port previous one!
> 

Add USES=compiler to the Makefile which should then define
COMPILER_TYPE after the inclusion of bsd.port.pre.mk

See
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/appendices.html





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DF044D.3030903>