From owner-freebsd-toolchain@FreeBSD.ORG Tue Jul 24 09:15:07 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CADE106564A for ; Tue, 24 Jul 2012 09:15:07 +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 4AE3F8FC0A for ; Tue, 24 Jul 2012 09:15:07 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:7c0f:9efb:3fb5:5912] (unknown [IPv6:2001:7b8:3a7:0:7c0f:9efb:3fb5:5912]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 743905C37; Tue, 24 Jul 2012 11:15:06 +0200 (CEST) Message-ID: <500E6798.9040104@FreeBSD.org> Date: Tue, 24 Jul 2012 11:15:04 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Erik Cederstrand References: <88204636-7665-4B06-B781-174C24A384FE@cederstrand.dk> In-Reply-To: <88204636-7665-4B06-B781-174C24A384FE@cederstrand.dk> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-toolchain@freebsd.org Subject: Re: MCLinker and llvm-config X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2012 09:15:07 -0000 On 2012-07-24 11:02, Erik Cederstrand wrote: > I'm creating a FreeBSD port for MCLinker (http://code.google.com/p/mclinker/) in preparation of MCLinker working without patching LLVM, and testing MCLinker as a system linker when it gets far enough. > > In the configure stage, MCLinker needs to run llvm-config, which is not installed by default in FreeBSD, even when WITH_CLANG_EXTRAS is set. What is the best option to get llvm-config on my system? Can I just run make && make install somewhere in /usr/src? I never added the tool to the tree, because I simply didn't think anybody would need to ever run this (IMO not very useful) tool. (Since the configuration is totally static, there's no need to dynamically run a tool such as this to get at the configuration details.) It isn't too hard to re-add it to the tree though, and add it to the WITH_CLANG_EXTRAS case. Another possibility is to just install the lang/clang or lang/clang-devel port. Btw, does MCLinker want to use LLVM as a shared library, by any chance? If that is the case, you should definitely use the port, as adding the shared library to the system is something I still need to implement.