From owner-freebsd-current@FreeBSD.ORG Sat Sep 3 21:15:06 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 930DC106564A for ; Sat, 3 Sep 2011 21:15:06 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 500988FC0C for ; Sat, 3 Sep 2011 21:15:06 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:b087:5572:d109:d251] (unknown [IPv6:2001:7b8:3a7:0:b087:5572:d109:d251]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 920D25C59; Sat, 3 Sep 2011 23:15:05 +0200 (CEST) Message-ID: <4E6298DE.5090007@FreeBSD.org> Date: Sat, 03 Sep 2011 23:15:10 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> In-Reply-To: <4E6294E0.5010104@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Compiling BETA2 with clang fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2011 21:15:06 -0000 On 2011-09-03 22:58, Volodymyr Kostyrko wrote: > 03.09.2011 23:43, Dimitry Andric ???????(??): >> On 2011-09-03 22:22, Volodymyr Kostyrko wrote: ... > .if ${CC:T} == "clang" > CFLAGS+= -Qunused-arguments -fPIC > .endif You should not unconditionally add -fPIC. Remove it, and try again. (The -Qunused-arguments is fine, btw.)