[LLVMdev] Using LLVM to compile system programs
Chris Lattner
sabre at nondot.org
Wed Nov 9 15:17:16 PST 2005
On Wed, 9 Nov 2005, Sean Peisert wrote:
> Though unfortunately, this still requires customizing all the
> Makefiles to be LLVM-style, unless I'm missing something.... Now,
> some sort of ability to batch-compile/instrument source from the
> system source tree somehow by just specifying the directory would be
> REALLY cool.
Most makefiles allow you to just add this to CFLAGS or something. Try
'make CFLAGS=-Wl,-native'. Alternatively, since this really needs to be
passed in at link time, try LDFLAGS. CFLAGS is more widely supported, but
LDFLAGS may also work.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list