[llvm-commits] [PATCH] Building llvm-gcc with llvm-2.5 debian packages

Mikael Lepistö mikael.lepisto at tut.fi
Fri Sep 4 05:41:36 PDT 2009


Hi,

We encountered some errors while compiling llvm-gcc with preinstalled 
debian llvm-2.5 packages. Basically the problem is that llvm-config 
--prefix tells that llvm is installed in /usr/lib/llvm and --includedir 
tells that llvm includes are found from /usr/include/llvm. Compile 
system makes an assumpion that includes should be found from 
'llvm-config --prefix'/include or 'llvm-config --src-root'/include.

Patch fixes the problem in a way that it asks with llvm-config 
--includedir where include files really should be found. Sadly debian's 
llvm-config tells wrong path with this switch as well so the patch also 
removes extra '/llvm' suffix from location returned by Debian.

I tested the patch by compiling llvm-gcc with non installed llvm source 
dir, with llvm installation (from sources) and with debian llvm 
installation.

Mikael Lepistö
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Debian-package-makefile-fix.patch
Type: text/x-diff
Size: 1988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090904/f9a048d3/attachment.patch>


More information about the llvm-commits mailing list