On Mon, 05 Dec 2011 02:18:13 -0600
DJ Lucas <[email protected]> wrote:

> LLVM will need to be added to the book for Mesa (Andy posted a nice 
> build script the other day that links everything dynamic for 2.9, but 
> 3.0 fails to build for me).

Thanks very much :)
I've had a look at llvm-3.0 and this seems to work:

touch tools/edis/EnhancedDisassembly.exports
./configure --prefix=/usr
sed -i 's#BUILD_ARCHIVE :*= 1#NO_BUILD_ARCHIVE = 1#' \
  $(grep -rl 'BUILD_ARCHIVE :*= 1' .)
find . -name Makefile -exec sed -i '/SHARED_LIBRARY/d
  /^LIBRARYNAME/a SHARED_LIBRARY = 1' {} \;
for thing in {utils/{F,f,n,Tab}*,projects/sample/tools/sample}/Makefile
do sed -i -e '/^USEDLIBS/s# \([A-Za-z]*\).a# -l\1#g' \
          -e 's#^USEDLIBS#LDFLAGS#' ${thing}
done
make -j4
make install

make check gives:

  Expected Passes    : 5273
  Expected Failures  : 48
  Unsupported Tests  : 15

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to