On Mon, 13 Jun 2011, Sylvestre Ledru wrote:
> I wrote this crappy patch:
> http://anonscm.debian.org/viewvc/pkg-llvm/clang/trunk/debian/patches/14-multiarchi386.diff?revision=64&view=markup
> it fixes the problem on my system.

Alright, but that isn’t going to fix the original issue I reported; 
GccTriple is still "", so it won’t find 
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/crtbegin.o on x86_64.

I certainly agree that piling distro-specific, GCC-version-specific, and 
arch-specific hacks into ToolChains.cpp is unpleasant; that’s why I think 
we should make the path be configured and tested at build time.

GCC does come with an easy way to find the right path, though:
  $ gcc -print-file-name=crtbegin.o
  /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/crtbegin.o

Anders



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to