From owner-freebsd-ports@FreeBSD.ORG Sat Mar 29 12:46:57 2014 Return-Path: Delivered-To: freebsd-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 B2B3DD55; Sat, 29 Mar 2014 12:46:57 +0000 (UTC) Received: from smtpout3.timeweb.ru (smtpout3.timeweb.ru [92.53.117.25]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64924D09; Sat, 29 Mar 2014 12:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=amdmi3.ru; s=dkim; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=JphE8YX3nqSc+7eHKOzHFC61oqZoo4Qjq1r+IvRXRHg=; b=hYKygkXoGFZqHxW7c9halnOVbfR6dKjmuWphyBveahOUI3Sjs5JlSw8eh5bdRcT42t+ij0HWFFuhRtIHKFN0y0FNCztAhSXjGFmDwG+w5DSkwt0GNz/3IjRQRiMvKVkLuuEAaXWpOeYtFJCdvLn0gSNT3V6HQie8J2J6uzyGU9w=; Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1WTsey-0001aA-Pj; Sat, 29 Mar 2014 16:46:52 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 6BC80CE8; Sat, 29 Mar 2014 16:46:52 +0400 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 5A4A3121E4; Sat, 29 Mar 2014 16:46:52 +0400 (MSK) Date: Sat, 29 Mar 2014 16:46:52 +0400 From: Dmitry Marakasov To: Dimitry Andric Subject: Re: HEAD clang failures due to unknown arguments Message-ID: <20140329124652.GH73879@hades.panopticon> References: <20140329044342.GG73879@hades.panopticon> <73F477CA-6AF4-4217-AC81-730A5DED11D5@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <73F477CA-6AF4-4217-AC81-730A5DED11D5@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-ports@freebsd.org 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: Sat, 29 Mar 2014 12:46:57 -0000 * Dimitry Andric (dim@FreeBSD.org) wrote: > > Are we to fix new clang failures related to that clang now treats > > unknown arguments as fatal errors: > > > > --- > > c++: error: unknown argument: '-R/usr/local/lib' > > --- > > Yes, just replace -R/usr/local/lib with -Wl,-rpath,/usr/local/lib. This > is very easy to do with sed. I've just removed them and it worked. Or is there a reason for rpath to system lib directory? What about other keys? I've also encountered -fwhole-program and -malign-double What I plan to do is: --- USES+= compiler:env .include post-patch: .if ${COMPILER_TYPE} == "clang" @${REINPLACE_CMD} -e 's|-fwhole-program||' ${WRKSRC}/CMakeLists.txt .endif --- but what if next version of clang learns of this key? I'd like to have something like .if ! ${COMPILER_SUPPORTED_ARGUMENTS:M-fwhole-program} @${REINPLACE_CMD} -e 's|-fwhole-program||' ${WRKSRC}/CMakeLists.txt .endif .if ${COMPILER_SUPPORTED_ARGUMENTS:M-malign-double} CXXFLAGS+= -malign-double .endif -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru