[llvm-commits] [PATCH] fix compiling llvm-gcc against installed llvm, tested with rev 89457
Mikael Lepistö
mikael.lepisto at tut.fi
Thu Dec 3 23:55:23 PST 2009
Hi,
I sent this patch two weeks ago and I didn't see any comments about it.
Short summary about changes:
Patch allows compiling llvm-gcc against any installation, as long as
llvm-config --includedir and llvm-config --libdir points to correct
places.
llvm-config returns always correct values for those switches it does
not matter if we ran it from object or installation directory. e.g.
when llvm-config is ran in objdir, it points to obj and src dir
locations if it's ran from installation path, it returns paths of
installed includes and libraries.
- Mikael
On 21.11.2009, at 0:04, Mikael Lepistö wrote:
> Hi,
>
> Here is patch again (I sent this also few weeks ago) for allowing
> compilation of llvm-gcc against llvm installation directory. For
> some reason it never got applied during llvm-2.6 release hurries.
>
> Before patch compiling llvm-gcc against llvm worked only if llvm
> includes and libs were installed in same prefix. However e.g. in
> debian deb packages have includes and libs installed in different
> prefix.
>
> Patch allows compiling llvm-gcc against any installation, as long as
> llvm-config --includedir and llvm-config --libdir points to correct
> places.
>
> I tried that after patch building llvm-gcc still works:
> against llvm install directory
> against llvm objdir when objdir == srcdir
> against llvm objdir when objdir != srcdir
>
> I also tested building llvm-gcc without enable-llvm.
>
> Mikael Lepistö
>
> <building-llvm-gcc-towards-installed-llvm-directory.patch>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list