The Wayback Machine - https://web.archive.org/web/20170629154322/http://www.advogato.org/person/redi/diary/254.html

1 Nov 2011 redi   » (Master)

I wrote previously about needing to hack the clang sources to build it with gcc in a non-standard location. That patch is no longer necessary, to enable it to find the GCC headers and runtime files I now configure it as:


GCC_DIR=/your/gcc/prefix
GCC_VER=4.4.3
GCC_ARCH=x86_64-unknown-linux-gnu
../llvm/configure --prefix=$PREFIX --enable-targets=host \
--enable-optimized --disable-jit \
LDFLAGS=-Wl,-R,$GCC_DIR/lib64 \
--with-cxx-include-root=$GCC_DIR/include/c++/$GCC_VER \
--with-cxx-include-arch=$GCC_ARCH



Due to some GNUisms in older versions of glibc (e.g 2.5 in my case) it's necessary to build LLVM with
make CFLAGS=-std=gnu89

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!