Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2012 11:15:04 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Erik Cederstrand <erik@cederstrand.dk>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: MCLinker and llvm-config
Message-ID:  <500E6798.9040104@FreeBSD.org>
In-Reply-To: <88204636-7665-4B06-B781-174C24A384FE@cederstrand.dk>
References:  <88204636-7665-4B06-B781-174C24A384FE@cederstrand.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?500E6798.9040104>