From owner-freebsd-ports@FreeBSD.ORG Tue Jan 21 23:36:12 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8876DB28; Tue, 21 Jan 2014 23:36:12 +0000 (UTC) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:6:4]) by mx1.freebsd.org (Postfix) with ESMTP id E8EB91585; Tue, 21 Jan 2014 23:36:11 +0000 (UTC) Received: from ppp121-45-52-62.lns20.adl2.internode.on.net (HELO leader.local) ([121.45.52.62]) by ipmail04.adl6.internode.on.net with ESMTP; 22 Jan 2014 10:05:50 +1030 Message-ID: <52DF044D.3030903@ShaneWare.Biz> Date: Wed, 22 Jan 2014 10:05:41 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: lev@FreeBSD.org, ports@FreeBSD.org Subject: Re: How to determine type of system compiler in port? References: <1603752718.20140122024525@serebryakov.spb.ru> In-Reply-To: <1603752718.20140122024525@serebryakov.spb.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 23:36:12 -0000 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