[cfe-dev] Clang on Ubuntu 11.04 (natty) 32 bits

pageexec at freemail.hu pageexec at freemail.hu
Thu Apr 28 23:53:42 PDT 2011


On 29 Apr 2011 at 5:35, Óscar Fuentes wrote:

> Any pointers on how to configure clang for matching gcc's directory
> search list appreciated.

to avoid related problems on gentoo (i have an amd64 cross compiler installed on a i386
userland) i configure with these:

--with-cxx-include-root=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4
--with-cxx-include-arch=i686-pc-linux-gnu
--with-binutils-include=/usr/lib/binutils/i686-pc-linux-gnu/2.21/include

and on an amd64 userland i use these:

--with-cxx-include-root=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4
--with-cxx-include-arch=x86_64-pc-linux-gnu
--with-cxx-include-32bit-dir=32





More information about the cfe-dev mailing list