From owner-freebsd-toolchain@FreeBSD.ORG Tue Jul 24 09:39:54 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 482E7106564A; Tue, 24 Jul 2012 09:39:54 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp3.one.com (csmtp3.one.com [91.198.169.23]) by mx1.freebsd.org (Postfix) with ESMTP id 046F38FC0C; Tue, 24 Jul 2012 09:39:54 +0000 (UTC) Received: from [192.168.1.18] (unknown [217.157.7.221]) by csmtp3.one.com (Postfix) with ESMTPA id D78B32406C96; Tue, 24 Jul 2012 09:39:46 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Erik Cederstrand In-Reply-To: <500E6798.9040104@FreeBSD.org> Date: Tue, 24 Jul 2012 11:39:46 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <88204636-7665-4B06-B781-174C24A384FE@cederstrand.dk> <500E6798.9040104@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1278) 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:39:54 -0000 Hi Dimitry, Den 24/07/2012 kl. 11.15 skrev Dimitry Andric: > 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. >>=20 >> 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? >=20 > 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.) Ok. I might be able to hard-code this in the configure script. It just = needs the output of the --version, --cflags and --cxxflags options. > 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. I'll try this first. Thanks. > 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. I'm not sure. I've never actually used MCLinker. First step is to create = the port so I can easily install it :-) Btw, do you guys have any plans for a GNU ld replacement? Progress on = the more "official" lld (http://lld.llvm.org/) seems slow, and MCLinker = more promising. Hence my feeble attempts :-) Thanks, Erik=